/* ===========================
   GRACEVILLE CHRISTIAN CENTRE
   Premium Church Website CSS
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E9C4;
  --navy: #0E1526;
  --navy-mid: #162040;
  --purple-deep: #1A1035;
  --purple-mid: #2D1B69;
  --white: #FFFFFF;
  --off-white: #F8F6F2;
  --gray-light: #E8E4DC;
  --gray-mid: #9B9690;
  --text-dark: #1A1612;
  --text-mid: #4A4540;

  --font-display: 'Cinzel', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline; } }

/* ======= ANIMATIONS ======= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1A0E00;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-large { padding: 18px 42px; font-size: 1rem; }

/* ======= TYPOGRAPHY HELPERS ======= */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--gold); }

.section-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 48px;
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 32px;
}

.center-cta { text-align: center; margin-top: 48px; }

/* ======= NAVBAR ======= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
#navbar.scrolled {
  background: rgba(14, 21, 38, 0.97);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.logo-grace {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1A0E00 !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 999;
}
.nav-links.open a { font-size: 1.5rem; }

/* ======= HERO ======= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(14, 21, 38, 0.85) 0%,
    rgba(45, 27, 105, 0.65) 50%,
    rgba(14, 21, 38, 0.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
.hero-badge {
  position: absolute;
  right: 5%;
  bottom: 15%;
  z-index: 2;
}
.badge-inner {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(201,168,76,0.5);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 60px rgba(201,168,76,0.7); }
}
.badge-day {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #1A0E00;
}
.badge-time {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #1A0E00;
}

/* ======= MARQUEE ======= */
.marquee-bar {
  background: linear-gradient(135deg, var(--navy), var(--purple-mid));
  padding: 16px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding-right: 40px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ======= ABOUT ======= */
.section-about {
  padding: 120px 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.about-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 600px;
  overflow: hidden;
  border-radius: 4px;
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold);
  border-radius: 4px;
  opacity: 0.4;
  z-index: -1;
}
.about-quote-card {
  background: var(--navy);
  padding: 24px 28px;
  margin-top: 24px;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--off-white);
  line-height: 1.6;
  margin-bottom: 10px;
}
.quote-attr {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.about-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ======= EXPERIENCE ======= */
.section-experience {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.experience-bg-img {
  position: absolute;
  inset: 0;
}
.experience-bg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.exp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(14,21,38,0.92) 0%,
    rgba(26,16,53,0.88) 100%
  );
}
.section-experience .container { position: relative; z-index: 2; }
.section-experience .section-title { text-align: center; }
.section-experience .section-eyebrow { text-align: center; display: block; }
.section-experience .gold-line { margin: 0 auto 60px; }

.experience-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 600px) {
  .experience-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .experience-cards { grid-template-columns: repeat(4, 1fr); }
}
.exp-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}
.exp-card:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-8px);
}
.exp-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.exp-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.exp-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ======= MESSAGES / SERMONS ======= */
.section-messages {
  padding: 120px 0;
  background: var(--navy);
}
.section-messages .section-title { color: var(--white); }
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.3);
}
.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-meta {
  padding: 20px;
}
.video-tag {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}
.video-meta h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.4;
}

/* ======= INVITATION ======= */
.section-invitation {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--navy-mid) 100%);
  overflow: hidden;
}
.invitation-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 80vh;
}
@media (min-width: 900px) {
  .invitation-inner { grid-template-columns: 1fr 1fr; }
}
.inv-img-col {
  position: relative;
  min-height: 400px;
}
.inv-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.inv-text-col {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .inv-text-col { padding: 60px 32px; }
}
.inv-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
}
.inv-title em { color: var(--gold-light); font-style: italic; }
.inv-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 480px;
}

/* ======= VISIT ======= */
.section-visit {
  padding: 120px 0;
  background: var(--off-white);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1.5fr; gap: 60px; }
}
.visit-info { display: flex; flex-direction: column; gap: 20px; }
.visit-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 28px;
  border-left: 3px solid var(--gold);
}
.visit-icon { font-size: 1.5rem; margin-bottom: 10px; }
.visit-card h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.visit-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.visit-map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 450px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.visit-map iframe {
  width: 100%; height: 100%;
  min-height: 450px;
  border: none;
  display: block;
}

/* ======= GALLERY STRIP ======= */
.gallery-strip {
  display: flex;
  overflow: hidden;
  height: 300px;
}
@media (min-width: 600px) { .gallery-strip { height: 400px; } }
.gallery-item {
  flex: 1;
  min-width: 200px;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.1); }

/* ======= SOCIAL ======= */
.section-social {
  padding: 120px 0;
  background: var(--navy);
  text-align: center;
}
.section-social .section-title { color: var(--white); }
.section-social .section-desc { color: rgba(255,255,255,0.6); margin: 0 auto 48px; }
.social-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 600px) { .social-cards { flex-direction: column; } }
.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}
.social-card:hover {
  transform: translateX(8px);
  border-color: var(--gold);
  background: rgba(255,255,255,0.04);
}
.social-card.facebook { border-left: 3px solid #1877F2; }
.social-card.instagram { border-left: 3px solid #E1306C; }
.social-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-card.facebook .social-icon { color: #1877F2; }
.social-card.instagram .social-icon { color: #E1306C; }
.social-icon svg { width: 28px; height: 28px; }
.social-text { display: flex; flex-direction: column; text-align: left; flex: 1; }
.social-platform {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.social-handle {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}
.social-arrow { color: var(--gold); font-size: 1.2rem; }

/* ======= FOOTER ======= */
#footer {
  background: var(--purple-deep);
  color: var(--white);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 80px 10%;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 700px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.footer-logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-light);
}
.footer-links-col h5 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links-col ul { list-style: none; }
.footer-links-col ul li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links-col ul li a {
  color: inherit;
  text-decoration: none;
}
.footer-links-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 28px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-scripture {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold) !important;
  opacity: 0.8;
  font-size: 0.9rem !important;
}
