/* ============================================================
   LOVE OASIS CHRISTIAN CENTER — Main Stylesheet
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --navy: #0D1F3C;
  --navy-mid: #1a3560;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --text: #2d2d2d;
  --text-light: #666;
  --border: #e0d9ce;
  --facebook: #1877F2;
  --youtube: #FF0000;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--cream); }
.centered { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
em { font-style: italic; color: var(--gold); }
.light em { color: var(--gold-light); }

.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title { margin-bottom: 1.25rem; }
.section-lead { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ---- Top Bar ---- */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-contact { display: flex; align-items: center; gap: 12px; }
.phone-link { color: var(--gold-light); font-weight: 700; transition: color var(--transition); }
.phone-link:hover { color: var(--white); }
.divider { opacity: 0.4; }
.top-social { display: flex; gap: 16px; }
.social-icon { display: flex; align-items: center; gap: 6px; font-weight: 600; transition: color var(--transition); }
.social-icon.fb:hover { color: #90baff; }
.social-icon.yt:hover { color: #ff9090; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-cross {
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0D1F3C 0%, #1a3560 40%, #2a4a7a 70%, #1a3560 100%);
}
/* Decorative geometric cross pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201,168,76,0.04) 60px, rgba(201,168,76,0.04) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(201,168,76,0.04) 60px, rgba(201,168,76,0.04) 61px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 80px solid rgba(201,168,76,0.07);
  border-radius: 50%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(13,31,60,0) 0%, rgba(13,31,60,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 24px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.45s ease both; }
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1s 1s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  animation: scrollPulse 1.5s ease infinite;
}

/* ---- Service Banner ---- */
.service-banner {
  background: var(--gold);
  padding: 24px 0;
}
.service-banner-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  gap: 4px;
}
.service-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(13,31,60,0.7);
}
.service-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.service-time a { color: var(--navy); text-decoration: underline; }
.service-divider {
  width: 1px;
  height: 48px;
  background: rgba(13,31,60,0.2);
}
.mobile-phone a { font-weight: 700; }

/* ---- Welcome ---- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-text p { color: var(--text-light); margin-bottom: 1rem; }
.welcome-text .btn { margin-top: 1rem; }

.verse-card {
  background: var(--navy);
  padding: 48px 40px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verse-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 20px solid rgba(201,168,76,0.12);
  border-radius: 50%;
}
.verse-icon { font-size: 2rem; color: var(--gold); margin-bottom: 1.5rem; }
.verse-card blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.verse-card cite {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---- Pastor Spotlight ---- */
.pastor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}
.pastor-image-placeholder {
  aspect-ratio: 3/4;
  background: var(--navy-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(201,168,76,0.3);
  position: relative;
  overflow: hidden;
}
.pastor-image-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,31,60,0.8), transparent);
}
.pastor-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.pastor-initials {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(201,168,76,0.4);
  letter-spacing: 0.1em;
}
.pastor-text p { color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.pastor-text .btn { margin-top: 1rem; }

/* ---- Ministries ---- */
.ministry-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ministry-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.ministry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.ministry-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.ministry-card:hover::after { transform: scaleX(1); }
.ministry-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ministry-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.75rem; }
.ministry-card p { font-size: 0.9rem; color: var(--text-light); }
.ministry-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: underline;
}
.mobile-only { display: none; }

/* ---- Social Feed ---- */
.social-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.social-platform-card {
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.social-platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.social-platform-card.facebook { background: var(--navy); color: var(--white); }
.social-platform-card.youtube { background: #1a0000; color: var(--white); }
.social-platform-card.prayer-card { background: var(--gold); color: var(--navy); }
.sp-icon { font-size: 2.5rem; display: flex; align-items: center; }
.social-platform-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.social-platform-card p { font-size: 0.9rem; opacity: 0.8; }
.sp-cta { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; opacity: 0.8; margin-top: 4px; }
.sp-phone { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); }

/* ---- Visit Banner ---- */
.visit-banner {
  background: var(--navy);
  padding: 56px 0;
}
.visit-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.visit-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.visit-banner p { color: rgba(255,255,255,0.7); }
.visit-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: #080f1e; color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 16px; margin-top: 1.5rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.site-footer h4 { color: var(--white); font-family: 'Lato', sans-serif; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-contact a { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ---- Pages: About / Pastor / Ministries / Sermons / Contact ---- */
.page-hero {
  background: var(--navy);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201,168,76,0.04) 60px, rgba(201,168,76,0.04) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(201,168,76,0.04) 60px, rgba(201,168,76,0.04) 61px);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-top: 0.75rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.05em; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.ci-icon { font-size: 1.5rem; flex-shrink: 0; }
.ci-text h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.ci-text p, .ci-text a { color: var(--text-light); font-size: 0.95rem; }
.ci-text a { color: var(--gold); font-weight: 700; }

/* Map embed placeholder */
.map-embed {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* Platform cards (Sermons page) */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.platform-card .platform-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.platform-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.platform-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.platform-card .platform-cta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.platform-card.platform-youtube .platform-icon { background: #FF0000; color: #fff; }
.platform-card.platform-youtube:hover { border-color: #FF0000; }
.platform-card.platform-facebook .platform-icon { background: #1877F2; color: #fff; }
.platform-card.platform-facebook:hover { border-color: #1877F2; }

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

@media (max-width: 1024px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 48px; }
  .pastor-grid { grid-template-columns: 1fr; gap: 48px; }
  .pastor-image-wrap { max-width: 320px; margin: 0 auto; }
  .ministry-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* Top bar */
  .top-bar { display: none; }

  /* Mobile header */
  .hamburger { display: flex; position: relative; z-index: 300; }
  .main-nav {
    display: none;
    /* js/main.js moves this element to <body> so position:fixed resolves
       against the viewport (the header's backdrop-filter would otherwise
       contain it and clip the menu to header height). */
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh; /* dynamic viewport height; falls back to 100vh below */
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 250;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(80px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  }
  @supports not (height: 100dvh) {
    .main-nav { height: 100vh; }
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.02em;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a:hover, .main-nav a.active { color: var(--gold); }
  .main-nav .nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-radius: 4px;
    padding: 16px 32px !important;
    margin-top: 16px;
    border-bottom: none !important;
  }

  /* Hero */
  .hero { min-height: 100vh; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  /* Service banner */
  .service-banner-inner { flex-direction: column; gap: 20px; }
  .service-divider { width: 80px; height: 1px; }
  .service-item { padding: 0; }

  /* Mobile phone numbers — ALWAYS visible on mobile */
  .mobile-only { display: inline-block !important; }
  .mobile-phone a { font-size: 1.3rem; font-weight: 700; color: var(--navy); }

  /* Social */
  .social-platforms { grid-template-columns: 1fr; }

  /* Ministries */
  .ministry-cards { grid-template-columns: 1fr 1fr; }

  /* Visit */
  .visit-banner-inner { flex-direction: column; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Sermon */
  .platform-grid { grid-template-columns: 1fr; }

  /* Pastor */
  .pastor-image-placeholder { aspect-ratio: 1; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .ministry-cards { grid-template-columns: 1fr; }
  .visit-actions { flex-direction: column; width: 100%; }
  .visit-actions .btn { text-align: center; }
}
