/*
  IGCD brand layer on top of the Minimal template + branded skin (skin-igcd.css).
  Brand palette: amber/gold #F6A600 (primary), #d89400 (dark), #fff3da (tint).
  Only contains overrides the template/skin do not already cover.
*/

:root {
    --igcd-gold: #F6A600;
    --igcd-gold-dark: #d89400;
    --igcd-gold-tint: #fff3da;
    --reveal-duration: 0.65s;
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */

/* Default: fade up */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease);
}

[data-reveal="fade-left"] {
    transform: translateX(-48px);
}

[data-reveal="fade-right"] {
    transform: translateX(48px);
    transition-delay: 0.1s;
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="scale"] {
    transform: scale(0.88);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Staggered children */
[data-reveal-child] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.5s var(--reveal-ease),
        transform 0.5s var(--reveal-ease);
}

[data-reveal-child].is-revealed {
    opacity: 1;
    transform: none;
}

/* Logo sizing in the navbar / footer */
.navbar-brand img {
    max-height: 56px;
    width: auto;
}

footer .footer-main > img {
    max-height: 72px;
    width: auto;
    margin: 0 auto;
}

/* Full-width designed banner images (home + sub-page headers).
   The original banners already contain the page titles, flags and icons,
   so they are shown as-is, edge to edge, below the fixed header. */
.home-hero-banner,
.page-banner-img {
    margin-top: 72px; /* clear the fixed top navbar */
    line-height: 0;
    overflow: hidden;
}

.home-hero-banner img,
.page-banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* On mobile: fix the banner height and zoom into the centre so the
   important artwork (flags, cross, title text) remains clearly visible. */
@media (max-width: 767px) {
    .home-hero-banner,
    .page-banner-img {
        height: 220px;
    }

    .home-hero-banner img,
    .page-banner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Give Today call-to-action band */
.give-band {
    background: linear-gradient(135deg, var(--igcd-gold) 0%, var(--igcd-gold-dark) 100%);
    color: #fff;
    text-align: center;
}

.give-band h2,
.give-band p {
    color: #fff;
}

.give-band .btn {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--igcd-gold-dark) !important;
}

.give-band .btn:hover {
    background: var(--igcd-gold-dark) !important;
    color: #fff !important;
}

/* Soft gradient divider that echoes the original site */
.gold-fade {
    height: 60px;
    background: linear-gradient(#ffffff 0%, var(--igcd-gold) 100%);
}

/* Belief / values text blocks */
.doctrine-block {
    max-width: 860px;
    margin: 0 auto;
}

.doctrine-block h2 {
    color: var(--igcd-gold-dark);
}

.doctrine-block + .doctrine-block {
    margin-top: 2.5rem;
}

/* ---- Our Beliefs: full-width alternating stripes ---- */

/* Intro band */
.belief-intro-band {
    padding: 36px 0 30px;
    background: #fff;
}

.belief-intro-text {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* Base stripe */
.belief-stripe {
    padding: 36px 0;
    width: 100%;
}

.belief-stripe--light { background: #fff; }
.belief-stripe--grey  { background: #f7f7f5; }

/* Gold accent stripe (Salvation section) */
.belief-stripe--gold {
    background: linear-gradient(135deg, var(--igcd-gold) 0%, var(--igcd-gold-dark) 100%);
}

/* Suppress the template's own content top/bottom margins inside stripes */
.belief-stripe .content,
.belief-intro-band .content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Row layout: meta column + text column */
.belief-row {
    display: flex;
    align-items: flex-start;
}

/* Left meta column: icon badge + ordinal number */
.belief-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    padding-right: 20px;
}

.belief-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--igcd-gold) 0%, var(--igcd-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(246, 166, 0, .30);
    margin-bottom: 14px;
}

.belief-badge--light {
    background: rgba(255, 255, 255, .25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    border: 2px solid rgba(255, 255, 255, .6);
}

.belief-badge i {
    font-size: 34px;
    color: #fff;
    line-height: 1;
}

.belief-index {
    font-size: 3rem;
    font-weight: 800;
    color: #e8e2d7;
    line-height: 1;
    letter-spacing: -2px;
}

.belief-stripe--grey .belief-index { color: #dedad3; }

.belief-index--light { color: rgba(255, 255, 255, .35); }

/* Right text column */
.belief-text h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 10px;
}

.belief-text hr.anima {
    margin-top: 0;
    margin-bottom: 18px;
}

.belief-text p {
    color: #5a5a5a;
    line-height: 1.8;
    margin-bottom: 0;
}

.belief-text p + p { margin-top: 1rem; }

/* Gold stripe text overrides */
.belief-text--light h2,
.belief-text--light p,
.belief-text--light strong { color: #fff; }

/* Pull-quote callout (used in Christ section) */
.belief-callout {
    display: inline-block;
    margin-top: 1rem !important;
    padding: 10px 18px;
    background: var(--igcd-gold-tint);
    border-left: 4px solid var(--igcd-gold);
    font-style: italic;
    color: #5a4800 !important;
    border-radius: 2px;
}

/* Branded check list (used inside "The Church") */
.belief-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1rem;
}

.belief-checklist li {
    position: relative;
    padding: 7px 0 7px 32px;
    border-bottom: 1px dashed #ece7da;
    color: #5a5a5a;
    line-height: 1.6;
}

.belief-checklist li:last-child { border-bottom: 0; }

.belief-checklist li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--igcd-gold);
}

/* Responsive */
@media (max-width: 767px) {
    .belief-stripe { padding: 28px 0; }

    .belief-row { flex-direction: column; }

    .belief-meta {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .belief-badge { margin-bottom: 0; width: 64px; height: 64px; }
    .belief-badge i { font-size: 26px; }
    .belief-index { font-size: 2.2rem; }

    .belief-text h2 { font-size: 1.4rem; }
}

/* Team cards */
.team-card .img-box img {
    width: 100%;
    object-fit: cover;
}

/* Partners logos: keep them tidy on the carousel */
.partners-carousel .img-box img {
    max-height: 110px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Contact form feedback boxes */
.form-ajax .success-box,
.form-ajax .error-box {
    display: none;
}

/* Map embed (contact page inline, legacy) */
.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

/* Full-width map strip below the contact section */
.contact-map-fullwidth {
    width: 100%;
    line-height: 0;
    border-top: 3px solid var(--igcd-gold);
}

.contact-map-fullwidth iframe {
    width: 100%;
    height: 460px;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .contact-map-fullwidth iframe { height: 300px; }
}

/* ================================================================
   FOOTER
   ================================================================ */

.igcd-footer {
    background: #161616;
    color: #b8b8b8;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

.igcd-footer__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--igcd-gold-dark) 0%, var(--igcd-gold) 50%, var(--igcd-gold-dark) 100%);
}

.igcd-footer__main {
    padding: 48px 0 40px;
}

.igcd-footer__grid {
    display: flex;
    flex-wrap: wrap;
}

/* Brand */
.igcd-footer__brand {
    padding-right: 24px;
}

.igcd-footer__logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.igcd-footer__logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.igcd-footer__tagline {
    color: #9a9a9a;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 24px;
    max-width: 380px;
}

.igcd-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.igcd-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: 40px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid #444;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.igcd-footer__btn:hover {
    background: var(--igcd-gold);
    border-color: var(--igcd-gold);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(246, 166, 0, .3);
}

.igcd-footer__btn i {
    font-size: 14px;
}

/* Columns */
.igcd-footer__col {
    padding-top: 4px;
}

.igcd-footer__title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--igcd-gold);
    display: inline-block;
}

.igcd-footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.igcd-footer__nav li {
    margin-bottom: 4px;
}

.igcd-footer__nav a {
    display: block;
    padding: 8px 0;
    color: #b0b0b0;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #2a2a2a;
    transition: color .2s, padding-left .2s, border-color .2s;
}

.igcd-footer__nav a:hover {
    color: var(--igcd-gold);
    padding-left: 8px;
    border-bottom-color: #3a3a3a;
}

.igcd-footer__nav li:last-child a {
    border-bottom: 0;
}

/* Contact list */
.igcd-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.igcd-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.igcd-footer__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(246, 166, 0, .12);
    border: 1px solid rgba(246, 166, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.igcd-footer__icon i {
    color: var(--igcd-gold);
    font-size: 16px;
    line-height: 1;
}

.igcd-footer__contact-text {
    color: #b0b0b0;
    font-size: 1.05rem;
    line-height: 1.55;
    padding-top: 8px;
}

.igcd-footer__contact-text a {
    color: #d8d8d8;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.igcd-footer__contact-text a:hover {
    color: var(--igcd-gold);
}

.igcd-footer__directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--igcd-gold);
    text-decoration: none;
    transition: color .2s, gap .2s;
}

.igcd-footer__directions:hover {
    color: #fff;
    text-decoration: none;
}

/* Copyright bar */
.igcd-footer__bar {
    background: #0d0d0d;
    padding: 16px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.igcd-footer__bar p {
    margin: 0;
    font-size: 0.95rem;
    color: #777;
    letter-spacing: 0.02em;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
    .igcd-footer__brand {
        margin-bottom: 32px;
        padding-right: 0;
    }

    .igcd-footer__col {
        margin-bottom: 28px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .igcd-footer__main {
        padding: 32px 0 24px;
    }

    /* Flex grid → vertical stack */
    .igcd-footer__grid {
        flex-direction: column;
        align-items: stretch;
    }

    /* All columns stack full-width, centred */
    .igcd-footer__brand,
    .igcd-footer__col,
    .igcd-footer [class*="col-sm-"],
    .igcd-footer [class*="col-md-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 28px;
    }

    /* Logo centred */
    .igcd-footer__logo-link {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }

    /* Tagline centred, full width */
    .igcd-footer__tagline {
        font-size: 0.95rem;
        max-width: 100%;
        text-align: center;
    }

    /* Call/Email buttons spread evenly */
    .igcd-footer__actions {
        justify-content: center;
    }

    .igcd-footer__btn {
        flex: 1 1 40%;
        max-width: 160px;
    }

    /* Section headings centred with full-width gold rule */
    .igcd-footer__title {
        display: block;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 12px;
        position: relative;
    }

    .igcd-footer__title::after {
        content: "";
        display: block;
        width: 40px;
        height: 2px;
        background: var(--igcd-gold);
        margin: 8px auto 0;
    }

    /* Nav links centred */
    .igcd-footer__nav a {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #262626;
    }

    .igcd-footer__nav a:hover {
        padding-left: 0;
    }

    /* Contact rows centred */
    .igcd-footer__contact {
        display: inline-block;
        text-align: left;
        margin: 0 auto 16px;
        width: 100%;
        max-width: 320px;
    }

    .igcd-footer__contact li {
        padding: 8px 0;
        gap: 12px;
    }

    .igcd-footer__icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .igcd-footer__icon i {
        font-size: 14px;
    }

    .igcd-footer__contact-text {
        font-size: 1rem;
        padding-top: 7px;
    }

    /* Get directions centred */
    .igcd-footer__directions {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    /* Thin divider between stacked sections */
    .igcd-footer__col {
        border-top: 1px solid #252525;
        padding-top: 24px;
    }

    /* Make tap targets larger on mobile */
    .igcd-footer__nav a {
        padding: 12px 0;
    }

    .igcd-footer__contact-text a {
        display: inline-block;
        padding: 4px 0;
    }

    /* Copyright bar */
    .igcd-footer__bar p {
        font-size: 0.85rem;
        padding: 0 12px;
    }
}
