/*
Theme Name: Glory Bound Church
Theme URI: https://gloryboundchurch.org/
Description: Child theme of AdoreChurch for Glory Bound Church of God (Palm Bay). Restyles header, hero, homepage sections, typography, and inner pages without replacing the parent theme.
Author: Glory Bound Church of God
Template: AdoreChurch
Version: 1.1.10
License: GNU General Public License v2 or later
Text Domain: glory-bound-church
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --gbc-navy: #1a2744;
  --gbc-navy-deep: #121a30;
  --gbc-navy-soft: #243356;
  --gbc-gold: #c4a35a;
  --gbc-gold-bright: #d4b56c;
  --gbc-cream: #f6f1e6;
  --gbc-parchment: #fbf8f2;
  --gbc-ink: #1d2330;
  --gbc-muted: #5c6574;
  --gbc-line: #e4ddd0;
  --gbc-white: #ffffff;
  --gbc-focus: #0b57d0;
  --gbc-radius: 14px;
  --gbc-shadow: 0 10px 30px rgba(18, 26, 48, 0.08);
  --gbc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gbc-sans: Roboto, "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

/* Override the parent cyan scheme with navy/gold */
.text-primary,
.btn-link,
.accent-color,
.basic-link,
.quick-info h4,
.events-listing-content .event-title,
a:hover {
  color: var(--gbc-gold) !important;
}

html {
  scroll-behavior: smooth;
}

body.theme-AdoreChurch,
body.wp-theme-AdoreChurch {
  background: var(--gbc-parchment);
  color: var(--gbc-ink);
  font-family: var(--gbc-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.theme-AdoreChurch h1,
body.theme-AdoreChurch h2,
body.theme-AdoreChurch h3,
body.theme-AdoreChurch h4,
body.theme-AdoreChurch .element-title,
body.theme-AdoreChurch .widgettitle {
  font-family: var(--gbc-serif);
  font-weight: 700;
  color: var(--gbc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--gbc-navy-soft);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gbc-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.btn-primary,
.woocommerce a.button.alt,
.wpcf7-form .wpcf7-submit,
.wp-element-button {
  background: var(--gbc-navy) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--gbc-white) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px !important;
  box-shadow: none !important;
}

.btn:hover,
.btn-primary:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--gbc-navy-soft) !important;
  color: var(--gbc-white) !important;
  opacity: 1 !important;
}

.btn-default,
.btn-transparent,
.event-register-button {
  background: transparent !important;
  border: 1.5px solid var(--gbc-navy) !important;
  color: var(--gbc-navy) !important;
}

.gbc-btn-gold,
.gbc-hero-cta .gbc-btn-gold {
  background: var(--gbc-gold) !important;
  color: var(--gbc-navy-deep) !important;
}

.gbc-btn-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  color: var(--gbc-white) !important;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  background: var(--gbc-navy) !important;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container.for-navi {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
}

.site-header .site-logo {
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
}

.site-logo h1 {
  margin: 0;
}

.site-logo a {
  color: var(--gbc-cream);
  text-decoration: none;
}

.site-logo img[src=""],
.site-logo img:not([src]),
.site-logo img[src=" "] {
  display: none;
}

.gbc-text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--gbc-cream);
  font-family: var(--gbc-sans);
}

.site-header .gbc-text-logo strong {
  font-family: var(--gbc-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header .gbc-text-logo span {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gbc-gold);
}

@media (min-width: 992px) {
  .site-header .gbc-text-logo strong {
    font-size: 20px;
  }
}

/* Desktop: single horizontal row (parent imic_main CSS is not applied) */
@media (min-width: 992px) {
  body.theme-AdoreChurch .site-header .main-navigation,
  body.header-style2 .site-header .main-navigation {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1 1 auto;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul,
  body.theme-AdoreChurch .site-header .main-navigation > ul.sf-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li {
    display: block !important;
    float: none !important;
    width: auto !important;
    position: relative;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > a {
    display: block;
    line-height: 72px;
    padding: 0 12px;
    white-space: nowrap;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li:hover > ul,
  body.theme-AdoreChurch .site-header .main-navigation > ul > li.sfHover > ul {
    display: block;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > ul li {
    display: block;
    width: 100%;
    float: none;
    position: relative;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > ul li ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    margin: 0;
    list-style: none;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > ul li:hover > ul {
    display: block;
  }

  body.theme-AdoreChurch #menu-toggle {
    display: none !important;
  }
}

/* Mobile: hamburger + stacked list */
@media (max-width: 991px) {
  body.theme-AdoreChurch .site-header .container.for-navi {
    flex-wrap: wrap;
  }

  body.theme-AdoreChurch .site-header .main-navigation {
    display: none;
    width: 100%;
    order: 3;
    background: var(--gbc-navy-deep);
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul,
  body.theme-AdoreChurch .site-header .main-navigation > ul > li {
    display: block;
    float: none;
    width: 100%;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > a {
    line-height: 1.3;
    padding: 14px 16px;
  }

  body.theme-AdoreChurch .site-header .main-navigation > ul > li > ul {
    position: static;
    display: none;
  }

  body.theme-AdoreChurch #menu-toggle {
    display: block;
    margin-left: auto;
  }
}

.main-navigation > ul > li > a {
  color: var(--gbc-cream) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-navigation > ul > li > a .nav-line {
  background: var(--gbc-gold) !important;
}

.main-navigation > ul > li > ul {
  background: var(--gbc-navy-deep) !important;
  border-color: var(--gbc-navy-soft) !important;
}

.main-navigation > ul > li > ul > li a {
  color: var(--gbc-cream) !important;
}

.main-navigation > ul > li > ul > li a:hover {
  color: var(--gbc-gold) !important;
}

#menu-toggle {
  color: var(--gbc-cream);
}

.gbc-nav-give a,
.menu-item-589 > a {
  background: var(--gbc-gold) !important;
  color: var(--gbc-navy-deep) !important;
  border-radius: 999px;
  padding: 8px 14px !important;
}

/* ==========================================================================
   Homepage layout 10: slider, ticker, events | visit
   ========================================================================== */
.home .breadcrumb-cont,
.home .lead-content,
.home #canvas-animation,
.home .slider-wrapper,
.home .nivoslider,
.home .content.full > .container > .pagelayer-post_props,
.home .content.full > .container > .pagelayer-row,
.home .page-header > div:empty,
.home .page-header > div:not(.hero-slider) {
  display: none !important;
}

.home.header-style2 .body,
.home .body {
  padding-top: 0 !important;
}

.home .site-header {
  margin: 0 !important;
  padding: 0;
  border-bottom: 0;
  position: relative;
  z-index: 6;
}

.home .page-header.parallax,
.home .page-header {
  background: var(--gbc-navy-deep) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  line-height: 0;
}

.home .hero-slider {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.gbc-slider {
  position: relative;
  z-index: 3;
  height: 56vh;
  min-height: 380px;
  background: var(--gbc-navy-deep);
  overflow: hidden;
  line-height: normal;
}

.gbc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: var(--gbc-navy-deep) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.gbc-slide.is-on {
  opacity: 1;
  z-index: 1;
}

.gbc-times-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  line-height: normal;
}

.gbc-times-inner {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.gbc-times {
  max-width: 420px;
  padding: 22px 26px 24px;
  background: rgba(26, 39, 68, 0.86);
  border: 1px solid rgba(196, 163, 90, 0.45);
  text-align: left;
  pointer-events: auto;
}

.gbc-times .gbc-kicker {
  color: var(--gbc-gold);
  font-family: var(--gbc-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gbc-times h2 {
  font-family: var(--gbc-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gbc-white) !important;
}

.gbc-times p {
  margin: 0 0 16px;
  color: var(--gbc-white);
  font-family: var(--gbc-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.gbc-times .btn.gbc-btn-gold {
  display: inline-block;
  background: var(--gbc-gold) !important;
  color: var(--gbc-navy-deep) !important;
  text-decoration: none;
  font-family: var(--gbc-sans);
  font-weight: 700;
  padding: 11px 18px !important;
  border-radius: 999px !important;
}

.gbc-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 26, 48, 0.55);
  color: var(--gbc-cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gbc-slider-arrow.prev { left: 16px; }
.gbc-slider-arrow.next { right: 16px; }

.gbc-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gbc-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 241, 230, 0.4);
  cursor: pointer;
}

.gbc-slider-dots button.is-on {
  background: var(--gbc-gold);
}

.gbc-ticker {
  background: var(--gbc-gold);
  color: var(--gbc-navy-deep);
  overflow: hidden;
  white-space: nowrap;
  margin: 0 !important;
  padding: 0;
  display: block;
  line-height: normal;
}

.gbc-ticker-track {
  display: inline-block;
  padding: 22px 0;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: gbc-tick 28s linear infinite;
}

.gbc-ticker:hover .gbc-ticker-track {
  animation-play-state: paused;
}

@keyframes gbc-tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home #content.content.full {
  background: var(--gbc-parchment);
}

.home #content.content.full > .container {
  width: 100% !important;
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.home #content.content.full > .container:has(.gbc-home-board) > .row {
  display: none !important;
}

.gbc-home-board {
  display: grid;
  /* Live 1.1.8 was 1fr 1fr (~50/50). Events ~half that width; tiles take the rest. */
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 32px 0 48px;
}

.gbc-events-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.home #sidebar-col {
  display: none !important;
}

.home .events-listing {
  background: var(--gbc-white);
  border: 1px solid var(--gbc-line);
  border-radius: 12px;
  padding: 18px 16px 8px;
  box-shadow: none;
}

.home .events-listing-header h3 {
  font-family: var(--gbc-serif);
  color: var(--gbc-navy);
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.home .events-listing-content .event-title,
.home .event-list-item h4 {
  overflow-wrap: anywhere;
}

.home .events-listing-header hr {
  display: none;
}

.event-list-item {
  border-bottom: 1px solid var(--gbc-line) !important;
  padding: 12px 0 !important;
}

.event-list-item-date .event-date {
  background: var(--gbc-cream);
  border: 1px solid var(--gbc-line);
  border-radius: 8px;
  color: var(--gbc-navy);
}

.event-list-item-date .event-day {
  color: var(--gbc-navy);
  font-family: var(--gbc-serif);
}

.gbc-visit-panel {
  background: var(--gbc-navy);
  color: var(--gbc-cream);
  border-radius: 12px;
  padding: 22px 24px 26px;
}

.gbc-visit-panel h2 {
  font-family: var(--gbc-serif);
  color: var(--gbc-gold);
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.gbc-visit-panel p {
  margin: 0 0 12px;
}

.gbc-visit-panel .btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  margin: 8px 8px 0 0;
}

.gbc-visit-panel .gbc-btn-gold {
  background: var(--gbc-gold);
  color: var(--gbc-navy-deep);
}

.gbc-visit-panel .gbc-btn-ghost {
  border: 1.5px solid rgba(246, 241, 230, 0.7);
  color: var(--gbc-cream);
  background: transparent;
}

.gbc-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.gbc-tiles a {
  aspect-ratio: 2 / 1;
  min-height: 92px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  width: 100%;
  border-radius: 12px;
  font-family: var(--gbc-serif);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 12px 16px;
}

.gbc-tiles a.tone-navy {
  background: var(--gbc-navy);
  color: var(--gbc-cream) !important;
}

.gbc-tiles a.tone-gold {
  background: var(--gbc-gold);
  color: var(--gbc-navy-deep) !important;
}

.gbc-tiles a.tone-cream {
  background: var(--gbc-cream);
  color: var(--gbc-navy) !important;
  border: 1px solid var(--gbc-line);
}

.gbc-tiles a:hover {
  filter: brightness(1.08);
}

#sidebar-col .widget_search {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .gbc-slide { transition: none; }
  .gbc-ticker-track { animation: none; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-header,
.page-header-overlay {
  background: var(--gbc-navy) !important;
}

.page:not(.home) .page-header {
  min-height: 180px;
}

.page:not(.home) .page-header h1,
.page:not(.home) .page-header h2 {
  color: var(--gbc-cream);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.breadcrumb-cont {
  background: var(--gbc-cream) !important;
}

.breadcrumb,
.breadcrumb a {
  color: var(--gbc-muted);
}

.content.full,
#content-col,
.entry-content {
  color: var(--gbc-ink);
}

.staff-item,
.sermon-item,
.event-grid-item,
.gallery-item,
.series-item {
  border-radius: var(--gbc-radius);
  overflow: hidden;
}

.event-page-cal,
.fc-event,
.accordion-heading .accordion-toggle.active,
.sort-source li.active a {
  background-color: var(--gbc-navy) !important;
  border-color: var(--gbc-navy) !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.form-control,
.wp-block-search__input {
  border: 1px solid var(--gbc-line) !important;
  border-radius: 10px !important;
  background: var(--gbc-white);
  color: var(--gbc-ink);
  min-height: 44px;
}

/* Donate / new-here readability */
.page-id-47 .content p,
.page-id-42 .content p,
.page-id-40 .content p,
.page-id-123 .content p {
  max-width: 70ch;
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--gbc-navy-deep) !important;
  color: rgba(246, 241, 230, 0.86);
}

.site-footer h4,
.site-footer .widgettitle,
.quick-info h4 {
  color: var(--gbc-gold) !important;
  font-family: var(--gbc-serif);
}

.site-footer a,
.site-footer p,
.site-footer .textwidget {
  color: rgba(246, 241, 230, 0.86);
}

.quick-info {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 241, 230, 0.7);
}

.social-icons-colored li a {
  background: var(--gbc-navy-soft) !important;
}

/* Hide leftover demo ticket language when it is only a heading */
.page-id-123 h3,
.page-id-65 h3,
.page-id-47 h3 {
  color: var(--gbc-navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .gbc-home-board {
    grid-template-columns: 1fr;
  }

  .home .gbc-slider {
    height: 48vh;
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  body.theme-AdoreChurch {
    font-size: 16px;
  }

  .site-header .container.for-navi {
    min-height: 64px;
  }

  .home .gbc-slider {
    height: 52vh;
    min-height: 280px;
  }

  .gbc-times-inner {
    width: calc(100% - 40px);
    padding-bottom: 40px;
  }

  .gbc-times {
    padding: 18px 18px 20px;
  }

  .gbc-times h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
