/*
 * Greater Grace Church of Bryan coordinated refresh
 * Version 2026.08.19.3
 */

:root {
    --ggcb-ink: #18313a;
    --ggcb-ink-2: #284b55;
    --ggcb-teal: #00897b;
    --ggcb-teal-dark: #006f64;
    --ggcb-coral: #e46355;
    --ggcb-paper: #ffffff;
    --ggcb-soft: #f4f6f4;
    --ggcb-warm: #f5efe8;
    --ggcb-line: #dce5e2;
    --ggcb-shadow: 0 18px 45px rgba(24,49,58,.12);
    --ggcb-radius: 16px;
}

.ggcb-refresh-active {
    color: var(--ggcb-ink);
    background: var(--ggcb-paper);
}

.ggcb-refresh-active .site-header {
    position: relative;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 rgba(24,49,58,.09);
}

.ggcb-refresh-active .site-header .topbar {
    background: #fff;
}

.ggcb-refresh-active .site-header .main-menu-wrapper {
    background: #fff;
    border-top: 1px solid #eef2f1;
}

.ggcb-refresh-active .navigation .sf-menu > li > a,
.ggcb-refresh-active .navigation .sf-menu > li > a:visited {
    color: var(--ggcb-ink) !important;
    font-weight: 600;
    letter-spacing: .02em;
}

.ggcb-refresh-active .navigation .sf-menu > li > a:hover {
    color: var(--ggcb-teal) !important;
}

.ggcb-refresh-active .ggcb-translate-menu > a {
    color: var(--ggcb-teal) !important;
    font-weight: 800 !important;
}

.ggcb-refresh-active .give-menu-button > a,
.ggcb-refresh-active .give-menu-button a {
    background: var(--ggcb-coral) !important;
    color: #fff !important;
    border-radius: 7px !important;
}

/* Hide the legacy widget footer visually while preserving its scripts and hooks. */
.ggcb-refresh-active footer.site-footer,
.ggcb-refresh-active footer.site-footer-bottom {
    display: none !important;
}

.ggcb-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ggcb-narrow {
    width: min(820px, calc(100% - 40px));
}

.ggcb-section {
    padding: 84px 0;
}

.ggcb-soft-section {
    background: var(--ggcb-soft);
}

.ggcb-kicker {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--ggcb-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ggcb-home h1,
.ggcb-home h2,
.ggcb-home h3,
.ggcb-landing h1,
.ggcb-landing h2,
.ggcb-landing h3 {
    margin-top: 0;
    color: var(--ggcb-ink);
    font-family: inherit;
    letter-spacing: -.02em;
}

.ggcb-home h1,
.ggcb-landing h1 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.03;
}

.ggcb-home h2,
.ggcb-landing h2 {
    font-size: clamp(29px, 3.3vw, 44px);
    line-height: 1.1;
}

.ggcb-home p,
.ggcb-landing p {
    color: #4e6268;
    font-size: 18px;
    line-height: 1.72;
}

.ggcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.ggcb-btn:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.ggcb-btn-primary {
    background: var(--ggcb-teal);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0,137,123,.18);
}

.ggcb-btn-primary:hover {
    background: var(--ggcb-teal-dark);
    color: #fff !important;
}

.ggcb-btn-outline {
    border-color: var(--ggcb-ink);
    color: var(--ggcb-ink) !important;
    background: transparent;
}

.ggcb-btn-outline:hover {
    background: var(--ggcb-ink);
    color: #fff !important;
}

.ggcb-btn-light {
    background: #fff;
    color: var(--ggcb-teal-dark) !important;
}

.ggcb-btn-large {
    min-height: 56px;
    padding: 16px 28px;
}

.ggcb-text-link {
    color: var(--ggcb-teal) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.ggcb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Homepage hero */
.ggcb-hero {
    overflow: hidden;
    padding: 76px 0 72px;
    background:
        radial-gradient(circle at 88% 16%, rgba(0,137,123,.13), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f4f7f6 60%, #f1eae1 100%);
}

.ggcb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    gap: 58px;
    align-items: center;
}

.ggcb-hero-copy p {
    max-width: 690px;
    margin: 22px 0 0;
    font-size: 20px;
}

.ggcb-hero-media {
    min-width: 0;
}

.ggcb-sermon-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ggcb-line);
    border-radius: var(--ggcb-radius);
    box-shadow: 0 10px 26px rgba(24,49,58,.08);
}

.ggcb-sermon-featured {
    box-shadow: var(--ggcb-shadow);
}

.ggcb-sermon-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background-color: #dbe5e2;
    background-position: center;
    background-size: cover;
    text-decoration: none !important;
}

.ggcb-sermon-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,33,39,.28), transparent 60%);
}

.ggcb-play {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--ggcb-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.ggcb-sermon-copy {
    padding: 22px 24px 26px;
}

.ggcb-sermon-copy .ggcb-kicker {
    margin-bottom: 8px;
}

.ggcb-sermon-copy h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.ggcb-sermon-featured .ggcb-sermon-copy h3 {
    font-size: clamp(22px, 2.3vw, 31px);
}

.ggcb-sermon-copy h3 a {
    color: var(--ggcb-ink) !important;
    text-decoration: none !important;
}

.ggcb-media-placeholder {
    display: grid;
    min-height: 320px;
    place-content: center;
    gap: 10px;
    padding: 40px;
    border-radius: var(--ggcb-radius);
    background: var(--ggcb-ink);
    color: #fff;
    text-align: center;
}

/* Service / translation strip */
.ggcb-service-strip {
    background: var(--ggcb-ink);
    color: #fff;
}

.ggcb-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.ggcb-service-grid > div {
    padding: 25px 24px;
    border-right: 1px solid rgba(255,255,255,.13);
}

.ggcb-service-grid > div:first-child {
    padding-left: 0;
}

.ggcb-service-grid > div:last-child {
    border-right: 0;
    padding-right: 0;
}

.ggcb-service-grid strong,
.ggcb-service-grid span {
    display: block;
}

.ggcb-service-grid strong {
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ggcb-service-grid span {
    color: #d5e0de;
    font-size: 17px;
}

.ggcb-translation-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 21px 0 24px;
    border-top: 1px solid rgba(255,255,255,.13);
}

.ggcb-translation-ribbon strong,
.ggcb-translation-ribbon span,
.ggcb-translation-ribbon small {
    display: block;
}

.ggcb-translation-ribbon strong {
    color: #fff;
    font-size: 17px;
}

.ggcb-translation-ribbon span {
    margin-top: 3px;
    color: #d6e7e4;
    font-size: 15px;
}

.ggcb-translation-ribbon small {
    margin-top: 2px;
    color: #aebfbc;
}

.ggcb-welcome {
    text-align: center;
}

.ggcb-welcome .ggcb-narrow {
    margin: 0 auto;
}

.ggcb-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.ggcb-section-heading h2 {
    margin-bottom: 0;
}

.ggcb-sermon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ggcb-events-section {
    background: var(--ggcb-soft);
}

.ggcb-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ggcb-event-card {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--ggcb-line);
    border-radius: 13px;
    background: #fff;
    color: var(--ggcb-ink) !important;
    box-shadow: 0 8px 22px rgba(24,49,58,.06);
    text-decoration: none !important;
}

.ggcb-event-card time {
    display: grid;
    flex: 0 0 64px;
    place-items: center;
    min-height: 70px;
    border-radius: 9px;
    background: var(--ggcb-warm);
    color: var(--ggcb-ink);
}

.ggcb-event-card time strong {
    color: var(--ggcb-coral);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ggcb-event-card time span {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.ggcb-event-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
}

.ggcb-event-card div > span,
.ggcb-event-static span {
    color: #6b7b80;
    font-size: 14px;
}

.ggcb-event-static {
    display: grid;
    align-content: center;
}

/* TMBC feature */
.ggcb-tmbc-feature {
    background: linear-gradient(135deg, #f4eee6 0%, #fff 52%, #ecf5f2 100%);
}

.ggcb-feature-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 58px;
    align-items: center;
}

.ggcb-feature-grid p {
    max-width: 730px;
}

.ggcb-feature-note {
    display: grid;
    gap: 12px;
    padding: 32px;
    border-radius: var(--ggcb-radius);
    background: var(--ggcb-ink);
    color: #fff;
    box-shadow: var(--ggcb-shadow);
}

.ggcb-feature-note strong {
    font-size: 21px;
}

.ggcb-feature-note span {
    color: #d9e4e2;
    font-size: 16px;
}

.ggcb-two-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ggcb-ministry-card {
    padding: 34px;
    border: 1px solid var(--ggcb-line);
    border-radius: var(--ggcb-radius);
    background: #fff;
}

.ggcb-ministry-card h2 {
    font-size: 30px;
}

.ggcb-visit-section {
    background: var(--ggcb-ink);
}

.ggcb-visit-section h2,
.ggcb-visit-section p,
.ggcb-visit-section .ggcb-kicker {
    color: #fff;
}

.ggcb-visit-section p {
    color: #d5dfdd;
}

.ggcb-visit-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}

.ggcb-visit-section .ggcb-btn-outline {
    border-color: #fff;
    color: #fff !important;
}

.ggcb-visit-section .ggcb-btn-outline:hover {
    background: #fff;
    color: var(--ggcb-ink) !important;
}

.ggcb-visit-callout {
    display: grid;
    gap: 10px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--ggcb-radius);
    background: rgba(255,255,255,.07);
    color: #fff;
}

.ggcb-visit-callout strong {
    font-size: 22px;
}

.ggcb-visit-callout span {
    color: #d5dfdd;
}

.ggcb-visit-callout a {
    color: #fff !important;
    font-weight: 800;
}


/* Remove the legacy NativeChurch page banner on the three new custom landing pages. */
.ggcb-page-translate .nav-backed-header,
.ggcb-page-translate .page-header,
.ggcb-page-tmbc .nav-backed-header,
.ggcb-page-tmbc .page-header,
.ggcb-page-official-ministries .nav-backed-header,
.ggcb-page-official-ministries .page-header {
    display: none !important;
}

.ggcb-page-translate .main > #content.content.full,
.ggcb-page-tmbc .main > #content.content.full,
.ggcb-page-official-ministries .main > #content.content.full {
    padding: 0 !important;
}

/* Landing pages */
.ggcb-page-hero {
    padding: 78px 0 66px;
    background: linear-gradient(135deg, #eef5f3, #fff 55%, #f5eee6);
    text-align: center;
}

.ggcb-page-hero .ggcb-narrow {
    margin: 0 auto;
}

.ggcb-page-hero p {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.ggcb-page-hero h2 {
    margin: -3px 0 18px;
    color: var(--ggcb-teal-dark);
    font-size: clamp(22px, 2.5vw, 31px);
}

.ggcb-language-line {
    padding-top: 12px;
}

.ggcb-translate-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: stretch;
}

.ggcb-translation-card,
.ggcb-qr-card,
.ggcb-official-card {
    padding: 38px;
    border: 1px solid var(--ggcb-line);
    border-radius: var(--ggcb-radius);
    background: #fff;
    box-shadow: 0 12px 30px rgba(24,49,58,.06);
}

.ggcb-translation-card small {
    display: block;
    margin-top: 16px;
    color: #75868b;
}

.ggcb-qr-card {
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.ggcb-qr-card img {
    width: min(280px, 100%);
    height: auto;
    margin-bottom: 18px;
}

.ggcb-qr-card strong,
.ggcb-qr-card span {
    display: block;
}

.ggcb-qr-card strong {
    font-size: 20px;
}

.ggcb-qr-card span {
    color: #687b80;
}

.ggcb-steps {
    margin: 24px 0;
    padding-left: 23px;
    color: #4e6268;
    font-size: 18px;
    line-height: 1.8;
}

.ggcb-tmbc-hero .ggcb-btn {
    margin-top: 12px;
}

.ggcb-three-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ggcb-three-stat-grid > div {
    display: grid;
    padding: 28px;
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.ggcb-three-stat-grid strong {
    color: var(--ggcb-teal-dark);
    font-size: 32px;
}

.ggcb-three-stat-grid span {
    color: #66787e;
}

.ggcb-copy-after-stats {
    margin: 44px auto 0;
}

.ggcb-link-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.ggcb-link-panel a {
    padding: 16px 18px;
    border: 1px solid var(--ggcb-line);
    border-radius: 9px;
    color: var(--ggcb-teal-dark) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.ggcb-official-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ggcb-official-card h2 {
    font-size: 25px;
}

.ggcb-official-card a {
    color: var(--ggcb-teal) !important;
    font-weight: 800;
}

.ggcb-verification-note {
    margin: 34px auto 0;
    text-align: center;
}

/* Give-page injected TMBC offering */
.ggcb-inline-offering {
    margin-top: 44px;
    padding: 32px 0;
    background: var(--ggcb-soft);
}

.ggcb-inline-offering-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ggcb-inline-offering h2 {
    margin: 0 0 8px;
}

.ggcb-inline-offering p {
    margin: 0;
    max-width: 780px;
}

/* New global footer */
.ggcb-site-footer {
    padding: 58px 0 0;
    background: #10252c;
    color: #d7e1df;
}

.ggcb-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.15fr .9fr;
    gap: 36px;
    padding-bottom: 45px;
}

.ggcb-site-footer p {
    color: #b9c9c6;
    line-height: 1.65;
}

.ggcb-site-footer a:not(.ggcb-btn) {
    display: block;
    margin: 8px 0;
    color: #d7e1df !important;
    text-decoration: none !important;
}

.ggcb-site-footer a:not(.ggcb-btn):hover {
    color: #fff !important;
}

.ggcb-footer-title {
    display: block;
    margin-bottom: 13px;
    color: #fff;
    font-size: 17px;
}

.ggcb-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #8fa4a0;
    font-size: 13px;
}

/* Suppress legacy iSermons homepage pagination if a shortcode/widget ever appears. */
.home .elementor-widget-isermons .isermons-pagination,
.home .elementor-widget-isermons .isermons-pagination .pagination,
.home .elementor-widget-isermons .isermons-pagination .page-numbers {
    display: none !important;
}

@media (max-width: 1080px) {
    .ggcb-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .ggcb-sermon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ggcb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .ggcb-section {
        padding: 62px 0;
    }

    .ggcb-hero {
        padding: 54px 0 50px;
    }

    .ggcb-hero-grid,
    .ggcb-feature-grid,
    .ggcb-visit-grid,
    .ggcb-translate-grid {
        grid-template-columns: 1fr;
    }

    .ggcb-hero-grid {
        gap: 34px;
    }

    .ggcb-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ggcb-service-grid > div,
    .ggcb-service-grid > div:first-child,
    .ggcb-service-grid > div:last-child {
        padding: 18px 16px;
        border-right: 1px solid rgba(255,255,255,.13);
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .ggcb-service-grid > div:nth-child(2n) {
        border-right: 0;
    }

    .ggcb-translation-ribbon {
        align-items: flex-start;
        flex-direction: column;
    }

    .ggcb-event-grid,
    .ggcb-official-grid {
        grid-template-columns: 1fr;
    }

    .ggcb-three-stat-grid {
        grid-template-columns: 1fr;
    }

    .ggcb-inline-offering-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .ggcb-shell,
    .ggcb-narrow {
        width: min(100% - 28px, 1180px);
    }

    .ggcb-home h1,
    .ggcb-landing h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .ggcb-home h2,
    .ggcb-landing h2 {
        font-size: clamp(27px, 8vw, 36px);
    }

    .ggcb-home p,
    .ggcb-landing p {
        font-size: 17px;
    }

    .ggcb-actions,
    .ggcb-actions .ggcb-btn {
        width: 100%;
    }

    .ggcb-service-grid {
        grid-template-columns: 1fr;
    }

    .ggcb-service-grid > div,
    .ggcb-service-grid > div:first-child,
    .ggcb-service-grid > div:last-child,
    .ggcb-service-grid > div:nth-child(2n) {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .ggcb-translation-ribbon .ggcb-btn {
        width: 100%;
    }

    .ggcb-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .ggcb-sermon-grid,
    .ggcb-two-card-grid,
    .ggcb-link-panel,
    .ggcb-footer-grid {
        grid-template-columns: 1fr;
    }

    .ggcb-ministry-card,
    .ggcb-translation-card,
    .ggcb-qr-card,
    .ggcb-official-card {
        padding: 26px;
    }

    .ggcb-page-hero {
        padding: 56px 0 48px;
    }

    .ggcb-footer-grid {
        gap: 28px;
    }

    /* Keep utility items compact in the existing mobile menu. */
    .ggcb-refresh-active .ggcb-translate-menu > a {
        background: #edf7f5 !important;
        color: var(--ggcb-teal-dark) !important;
    }
}


/* GGCB refresh v2: Elementor/legacy cleanup and internal Bible College CTA */
.ggcb-refresh-active .elementor-location-footer { display: none !important; }
.ggcb-bible-college-cta { margin: 34px 0 10px; text-align: center; }
.ggcb-page-translate .page-section,
.ggcb-page-official-ministries .page-section { padding: 0 !important; }

/* v3: TMBC lives inside the existing Elementor Special Offerings accordion. */
.ggcb-refresh-active .ggcb-tmbc-accordion-item .elementor-tab-content {
    color: #4e6268;
}

.ggcb-refresh-active .ggcb-tmbc-accordion-item .elementor-tab-content p {
    margin: 0 0 18px;
    font-size: inherit;
    line-height: 1.55;
}

.ggcb-refresh-active .ggcb-give-accordion-button {
    display: inline-block;
    width: auto;
    max-width: max-content;
    padding: 14px 28px;
    border-radius: 4px;
    background: #00897b;
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: normal;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ggcb-refresh-active .ggcb-give-accordion-button:hover {
    background: #006f64;
    color: #ffffff !important;
}


/* Grace Remas / Devotional homepage feature */
.ggcb-devotional-feature {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8f7 100%);
}

.ggcb-section-intro {
    max-width: 720px;
    margin: 10px 0 0;
    color: #62747a;
}

.ggcb-devotional-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ggcb-devotional-card {
    padding: 28px;
    border: 1px solid var(--ggcb-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,49,58,.06);
}

.ggcb-devotional-card h3 {
    margin: 8px 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.ggcb-devotional-card h3 a {
    color: var(--ggcb-ink) !important;
    text-decoration: none !important;
}

.ggcb-devotional-card p {
    margin-bottom: 16px;
    color: #53676d;
}

.ggcb-devotional-menu a {
    white-space: nowrap;
}

@media (max-width: 850px) {
    .ggcb-devotional-grid {
        grid-template-columns: 1fr;
    }
}
