:root {
    --ivory: #f3eee5;
    --charcoal: #262421;
    --red: #8a3529;
    --dark-red: #70291f;
    --stone: #b8aa99;
    --parchment: #e4d9ca;
    --elimblue: #00688f;
    --elimgreen: #cfd41f;
    --elimcyan: #00adef;
    --elimred: #980000;
    --deangold: #dac23e;
    --deanblack: #181818;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    background: var(--ivory);
    color: var(--charcoal);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* Navigation */

.site-nav {
    background: rgba(243, 238, 229, 0.96);
    border-bottom: 1px solid rgba(38, 36, 33, 0.2);
    backdrop-filter: blur(12px);
}

.wordmark {
    color: inherit;
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.4rem;
    letter-spacing: -0.045em;
    text-decoration: none;
}

.wordmark span {
    color: var(--dark-red);
}

.nav-link {
    color: var(--charcoal);
    font-weight: 500;
}

/* Animated red line beneath main menu links */

.site-nav .navbar-nav > .nav-item > .nav-link {
    position: relative;
    background-image: linear-gradient(var(--red), var(--red));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0 2px;
    transition:
        color 0.25s ease,
        background-size 0.25s ease;
}

.site-nav .navbar-nav > .nav-item > .nav-link:hover,
.site-nav .navbar-nav > .nav-item > .nav-link:focus,
.site-nav .navbar-nav > .nav-item > .nav-link.active,
.site-nav .navbar-nav > .nav-item > .nav-link.show {
    color: var(--red);
    background-size: calc(100% - 1rem) 2px;
}

/* Dropdown menu */

.site-nav .dropdown-menu {
    background: var(--ivory);
    border: 1px solid rgba(38, 36, 33, 0.2);
    border-radius: 0;
    padding: 0.5rem 0;
}

.site-nav .dropdown-item {
    color: var(--charcoal);
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus,
.site-nav .dropdown-item.active {
    color: var(--ivory);
    background-color: var(--red);
}

/* Typography */

h1,
h2,
.display-heading,
blockquote {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(5.4rem, 8vw, 9.2rem);
    line-height: 0.95;
}

.open-sans-400 {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Hero */

.hero .lead {
    max-width: 640px;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-art {
    position: relative;
    min-height: 760px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 72px;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-note span {
    width: 76px;
    height: 1px;
    background: var(--red);
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(350px, 100%);
    min-height: 70px;
    padding: 0 38px;
    color: #fff;
    background: var(--red);
    font-weight: 700;
    transition: 0.25s;
}

.button span {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.25s;
}

.button:hover {
    background: var(--dark-red);
}

.button:hover span {
    transform: translateX(6px);
}

.hero-art img {
    position: relative;
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.hero-disc {
    display: none;
}

/* General sections */

.eyebrow,
.section-number {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.light {
    color: var(--stone) !important;
}

.section-pad {
    padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section-pad h2 {
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: 0.98;
}

.display-heading {
    font-size: clamp(4rem, 7vw, 7.4rem) !important;
    line-height: 0.88 !important;
}

.dark-section {
    color: var(--ivory);
    background: var(--charcoal);
}

.dark-red-section {
    color: var(--deangold);
    background: var(--dark-red);
}

/* Service cards */

.service-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:first-child {
    padding-left: 0;
}

.service-card:last-child {
    border-right: 0;
}

.service-card h3 {
    margin: 1.3rem 0;
    font: 400 2rem/1.1 Georgia, serif;
}

.service-card p {
    color: #d9d1c7;
}

.service-card a,
.text-link-light {
    margin-top: auto;
    color: var(--ivory);
    font-weight: 700;
    text-decoration: none;
}

/* Quotes and buttons */

blockquote {
    margin: 2rem 0 3rem;
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    line-height: 1;
}

.btn-brand {
    display: inline-flex;
    justify-content: space-between;
    min-width: 300px;
    padding: 1.15rem 1.7rem;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 0;
}

.btn-brand:hover {
    color: #fff;
    background: var(--dark-red);
}

.text-link {
    padding-bottom: 0.4rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--red);
    font-weight: 700;
    text-decoration: none;
}

/* LinkedIn section */

.linkedin-section {
    background: #fff;
}

.linkedin-carousel {
    border: 1px solid rgba(38, 36, 33, 0.22);
}

.post-slide {
    min-height: 620px;
}

.embed-wrap {
    min-height: 620px;
    background: var(--parchment);
}

.embed-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 620px;
    border: 0;
}

.post-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 6rem);
}

.post-copy h3 {
    margin: 1.7rem 0;
    font: 400 clamp(2.2rem, 4vw, 4.4rem)/1 Georgia, serif;
}

.post-copy a {
    align-self: flex-start;
    margin-top: 1.4rem;
    padding-bottom: 0.4rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--red);
    font-weight: 700;
    text-decoration: none;
}

/* Carousel */

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    width: 64px;
    height: 64px;
    background: var(--charcoal);
    border-radius: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 16px;
}

.carousel-control-next {
    right: 16px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 1px solid var(--red);
    border-radius: 50%;
    opacity: 1;
}

.carousel-indicators .active {
    background: var(--red);
}

/* Lists and contact */

.list-group-item {
    padding: 1rem 0;
    background: transparent;
    border-color: rgba(38, 36, 33, 0.2);
}

.contact-section {
    color: #fff;
    background: var(--red);
}

.contact-section .display-heading {
    color: #fff;
}

.contact-section .btn {
    padding: 1rem 1.7rem;
    border-radius: 0;
}

footer {
    background: var(--ivory);
}

/* Sermon archive */

.archive-hero {
    padding: 7rem 0;
    color: var(--ivory);
    background: var(--charcoal);
}

.archive-hero h1 {
    font-size: clamp(4.5rem, 7.5vw, 8.5rem);
    line-height: 0.86;
}

.archive-hero .lead {
    color: #ddd5ca;
}

.podcast-link {
    padding: 0.75rem 1rem;
    color: var(--ivory);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-decoration: none;
}

.podcast-link:hover {
    color: var(--charcoal);
    background: var(--ivory);
}

.archive-tools {
    padding: 1.5rem;
    background: var(--parchment);
}

.archive-tools .form-control,
.archive-tools .form-select {
    min-height: 58px;
    background: var(--ivory);
    border-radius: 0;
}

.archive-tools .form-label,
.results-count,
.sermon-meta {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.results-count {
    margin: 1.8rem 0 1rem;
}

.sermon-list {
    border-top: 1px solid rgba(38, 36, 33, 0.4);
}

.sermon-list article {
    display: grid;
    grid-template-columns: 160px 1fr 150px;
    gap: 2rem;
    align-items: center;
    padding: 1.7rem 0.5rem;
    border-bottom: 1px solid rgba(38, 36, 33, 0.22);
}

.sermon-date {
    display: flex;
    flex-direction: column;
    font-size: 0.84rem;
}

.sermon-meta {
    margin: 0 0 0.5rem;
}

.sermon-list h3 {
    font: 400 clamp(1.35rem, 2vw, 2rem)/1.2 Georgia, serif;
}

.listen-btn {
    padding: 1rem 1.2rem;
    color: #fff;
    background: var(--red);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.listen-btn:hover {
    color: #fff;
    background: var(--dark-red);
}

.original-archive {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(38, 36, 33, 0.25);
}

.original-archive a {
    color: var(--charcoal);
    border-bottom: 1px solid var(--red);
    font-weight: 700;
    text-decoration: none;
}

/* Tablet and collapsed navigation */

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding: 1rem 0;
    }

    /* Full-width underline in the collapsed menu */
    .site-nav .navbar-nav > .nav-item > .nav-link {
        padding: 0.75rem 0;
        background-position: left bottom;
    }

    .site-nav .navbar-nav > .nav-item > .nav-link:hover,
    .site-nav .navbar-nav > .nav-item > .nav-link:focus,
    .site-nav .navbar-nav > .nav-item > .nav-link.active,
    .site-nav .navbar-nav > .nav-item > .nav-link.show {
        background-size: 100% 2px;
    }

    .site-nav .dropdown-menu {
        margin-left: 1rem;
        border: 0;
        border-left: 2px solid var(--red);
    }

    .hero-art,
    .hero-art img {
        min-height: 500px;
        height: 500px;
    }

    .service-card,
    .service-card:first-child {
        min-height: auto;
        padding: 2.5rem 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .post-slide {
        min-height: auto;
    }

    .embed-wrap,
    .embed-wrap iframe {
        min-height: 540px;
    }

    .post-copy {
        min-height: 390px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: 270px;
    }
}

/* DataTables pagination button text */
#sermonsTable_wrapper .dataTables_paginate .page-link,
#sermonsTable_wrapper .dataTables_paginate .paginate_button {
    color: var(--dark-red) !important;
}

/* Hover and keyboard focus */
#sermonsTable_wrapper .dataTables_paginate .page-link:hover,
#sermonsTable_wrapper .dataTables_paginate .page-link:focus,
#sermonsTable_wrapper .dataTables_paginate .paginate_button:hover {
    color: #ffffff !important;
    background-color: var(--red) !important;
    border-color: var(--red) !important;
}

/* Current page */
#sermonsTable_wrapper .dataTables_paginate .page-item.active .page-link,
#sermonsTable_wrapper .dataTables_paginate .paginate_button.current {
    color: #ffffff !important;
    background-color: var(--dark-red) !important;
    border-color: var(--dark-red) !important;
}

/* Disabled First, Previous, Next or Last buttons */
#sermonsTable_wrapper .dataTables_paginate .page-item.disabled .page-link,
#sermonsTable_wrapper .dataTables_paginate .paginate_button.disabled {
    color: var(--stone) !important;
    background-color: transparent !important;
}

#sermonsTable_wrapper .dataTables_paginate .page-link {
    color: #70291f !important;
}

/* Mobile */

@media (max-width: 767.98px) {
    .sermon-list article {
        grid-template-columns: 1fr;
    }

    .listen-btn {
        width: 100%;
    }

    .original-archive {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-hero {
        padding: 5rem 0;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 4.2rem;
    }

    .hero-art,
    .hero-art img {
        min-height: 430px;
        height: 430px;
    }

    .embed-wrap,
    .embed-wrap iframe {
        min-height: 500px;
    }

    .post-copy {
        min-height: 430px;
        padding: 2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: 250px;
        width: 48px;
        height: 48px;
    }
}