/*
Theme Name: Maze Presbyterian Church
Theme URI: https://mazepc.org
Author: Maze Presbyterian Church
Description: A welcoming, responsive theme for Maze Presbyterian Church in Lisburn.
Version: 1.0.8
Text Domain: maze-pc
*/

:root {
    --maze-purple: #27113d;
    --maze-purple-light: #5b2c83;
    --maze-gold: #f5b837;
    --maze-ink: #282033;
    --maze-muted: #625b69;
    --maze-paper: #ffffff;
    --maze-wash: #f5f2f7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--maze-ink);
    background: var(--maze-paper);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--maze-gold);
    outline-offset: 4px;
}

.maze-header {
    position: fixed;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding-inline: max(32px, calc((100% - 1540px) / 2));
    color: var(--maze-paper);
    background: var(--maze-purple);
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-brand > a,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-name {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.site-brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.custom-logo {
    width: auto;
    max-width: 200px;
    max-height: 52px;
    object-fit: contain;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--maze-ink);
    background: var(--maze-paper);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.primary-navigation a:hover {
    color: var(--maze-gold);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .48);
    color: var(--maze-paper);
    background: transparent;
    cursor: pointer;
}

.menu-toggle[hidden] {
    display: none;
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--maze-gold);
    outline-offset: 3px;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.maze-hero {
    display: flex;
    min-height: 740px;
    min-height: min(820px, 100svh);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--maze-paper);
    background-color: var(--maze-purple);
    background-image: linear-gradient(90deg, rgba(34, 13, 54, .97) 0%, rgba(43, 17, 66, .88) 38%, rgba(43, 17, 66, .2) 100%), url("assets/images/heroBaseLine.png");
    background-position: center, 68% center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    width: min(100% - 64px, 1540px);
    margin-inline: auto;
    padding-block: 120px 76px;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--maze-gold);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.maze-hero h1 {
    max-width: 780px;
    margin: 0 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 76px;
    font-weight: 400;
    line-height: .99;
}

.maze-hero h1 span {
    color: var(--maze-gold);
}

.hero-intro {
    max-width: 680px;
    margin: 0 0 36px;
    color: rgba(255, 255, 255, .92);
    font-size: 21px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.button-primary {
    color: #30243a;
    background: var(--maze-paper);
}

.button-primary:hover {
    background: var(--maze-gold);
}

.button-secondary {
    color: var(--maze-paper);
    background: rgba(91, 58, 119, .94);
}

.button-secondary:hover {
    background: #684589;
}

.content-section {
    padding: 76px max(32px, calc((100% - 1200px) / 2));
    scroll-margin-top: 96px;
}

.content-section h2 {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
}

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

.service {
    padding: 24px 0;
    border-top: 2px solid var(--maze-gold);
}

.service h3 {
    margin: 0 0 10px;
    color: var(--maze-purple);
    font-size: 20px;
}

.service p,
.about-copy {
    margin: 0;
    color: var(--maze-muted);
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.visit-actions .button {
    margin-top: 0;
}

.contact-link {
    color: var(--maze-paper);
    background: var(--maze-purple);
}

.contact-link:hover {
    color: var(--maze-purple);
    background: var(--maze-gold);
}

.new-to-maze-link {
    color: var(--maze-ink);
    background: var(--maze-gold);
}

.new-to-maze-link:hover {
    color: var(--maze-ink);
    background: #dfa51f;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--maze-purple);
    font-size: 14px;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.sermon-section {
    background: var(--maze-paper);
}

.sermon-section .section-heading {
    margin-bottom: 24px;
}

.sermon-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: center;
    gap: 48px;
}

.sermon-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--maze-wash);
}

.sermon-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.sermon-copy {
    max-width: 520px;
}

.sermon-date {
    margin: 0 0 8px;
    color: var(--maze-purple-light);
    font-size: 13px;
    font-weight: 700;
}

.sermon-copy h3 {
    margin: 0 0 12px;
    color: var(--maze-purple);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.sermon-copy h3 a {
    text-decoration: none;
}

.sermon-excerpt,
.sermon-empty {
    color: var(--maze-muted);
}

.sermon-excerpt > :first-child,
.sermon-empty > :first-child {
    margin-top: 0;
}

.sermon-excerpt > :last-child,
.sermon-empty > :last-child {
    margin-bottom: 0;
}

.sermon-link {
    margin-top: 20px;
    color: var(--maze-paper);
    background: var(--maze-purple);
}

.sermon-link:hover {
    color: var(--maze-purple);
    background: var(--maze-gold);
}

.sermon-empty {
    padding: 28px 0;
    border-top: 2px solid var(--maze-gold);
}

.welcome-section {
    background: var(--maze-wash);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 32px;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--maze-purple-light);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--maze-muted);
}

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

.welcome-item {
    padding-top: 18px;
    border-top: 2px solid var(--maze-gold);
}

.welcome-item h3 {
    margin: 0 0 8px;
    color: var(--maze-purple);
    font-size: 19px;
}

.welcome-item p {
    margin: 0;
    color: var(--maze-muted);
}

.about-section {
    background: var(--maze-paper);
}

.about-visit-link {
    margin-top: 24px;
    color: var(--maze-paper);
    background: var(--maze-purple);
}

.about-visit-link:hover {
    color: var(--maze-purple);
    background: var(--maze-gold);
}

.site-footer {
    padding: 28px 32px;
    color: rgba(255, 255, 255, .8);
    background: var(--maze-purple);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer .site-credit {
    margin-top: 6px;
    font-size: 13px;
}

.site-credit a {
    color: var(--maze-gold);
    text-decoration: none;
}

.site-credit a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content,
.entry-list {
    width: min(100% - 48px, 860px);
    margin: 120px auto 80px;
}

.entry-content h1,
.entry-content h2,
.entry-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.entry-list article {
    padding-block: 24px;
    border-bottom: 1px solid #ded8e3;
}

.entry-list article:first-child {
    border-top: 1px solid #ded8e3;
}

.entry-list a {
    color: var(--maze-purple);
}

.news-events-content {
    width: min(100% - 48px, 1200px);
}

.news-events-content > article > h1.entry-title + .wp-block-heading {
    display: none;
}

.news-events-content .pt-cv-wrapper {
    margin-top: 32px;
}

.news-events-content .pt-cv-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.news-events-content .pt-cv-content-item {
    width: auto;
    padding: 0;
}

.news-events-content .pt-cv-ifield {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-top: 3px solid var(--maze-gold);
    background: var(--maze-wash);
}

.news-events-content .pt-cv-href-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e7e1eb;
}

.news-events-content .pt-cv-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-events-content .pt-cv-title {
    margin: 18px 20px 8px;
    font-size: 20px;
    line-height: 1.3;
}

.news-events-content .pt-cv-title a {
    color: var(--maze-purple);
    text-decoration: none;
}

.news-events-content .pt-cv-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--maze-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.news-events-content .pt-cv-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 20px 20px;
    color: var(--maze-muted);
    font-size: 15px;
}

.news-events-content .pt-cv-rmwrap {
    margin-top: auto;
    padding-top: 18px;
}

.news-events-content .pt-cv-readmore {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 18px;
    color: var(--maze-paper);
    background: var(--maze-purple);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.news-events-content .pt-cv-readmore:hover {
    color: var(--maze-ink);
    background: var(--maze-gold);
}

@media (max-width: 960px) {
    .news-events-content .pt-cv-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .maze-header {
        min-height: 76px;
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .maze-header.has-menu-toggle .menu-toggle {
        display: flex;
    }

    .primary-navigation {
        order: 3;
        flex-basis: 100%;
        padding-top: 10px;
    }

    .maze-header.has-menu-toggle .primary-navigation {
        display: none;
        padding-top: 12px;
    }

    .maze-header.has-menu-toggle .primary-navigation.is-open {
        display: block;
    }

    .site-brand,
    .site-name {
        font-size: 13px;
    }

    .site-brand img {
        width: 38px;
        height: 38px;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .primary-navigation a {
        display: block;
        padding: 8px 0;
        font-size: 15px;
    }

    .maze-hero {
        min-height: 88svh;
        background-image: linear-gradient(90deg, rgba(34, 13, 54, .94), rgba(43, 17, 66, .74)), url("assets/images/heroBaseLine.png");
        background-position: center, 67% center;
    }

    .hero-content {
        width: calc(100% - 40px);
        padding-block: 110px 60px;
    }

    .eyebrow {
        max-width: 250px;
        font-size: 11px;
    }

    .maze-hero h1 {
        max-width: 470px;
        font-size: 56px;
    }

    .hero-intro {
        max-width: 470px;
        font-size: 17px;
        line-height: 1.6;
    }

    .button {
        min-height: 54px;
        padding-inline: 18px;
        font-size: 14px;
    }

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

    .sermon-feature {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sermon-video {
        width: 100%;
    }

    .sermon-copy h3 {
        font-size: 26px;
    }

    .service-grid {
        gap: 14px;
    }

    .welcome-grid {
        gap: 20px;
    }

    .content-section {
        padding: 54px 24px;
    }

    .news-events-content .pt-cv-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 380px) {
    .maze-header {
        padding-inline: 16px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

    .primary-navigation ul {
        gap: 10px;
    }

    .maze-hero h1 {
        font-size: 48px;
    }

    .hero-actions {
        gap: 10px;
    }

    .button {
        padding-inline: 13px;
        font-size: 13px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
