:root {
    --burgundy: #651d29;
    --burgundy-dark: #321017;
    --burgundy-deep: #220b11;

    --gold: #b99351;
    --gold-light: #d9bd83;

    --cream: #f5f1e8;
    --white: #fffdf8;

    --text: #292426;
    --muted: #77706c;

    --border: rgba(101, 29, 41, 0.15);

    --container: 1180px;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text);

    font-family: "Manrope", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* ================= GLOBAL ================= */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 130px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 24px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";

    display: block;

    width: 28px;
    height: 1px;

    background: currentColor;
}

.section-label--gold {
    color: var(--gold-light);
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
}

h2 {
    font-size: clamp(52px, 6vw, 78px);
    line-height: .92;
    letter-spacing: -.035em;
}

h2 em,
h1 em {
    color: var(--gold);
    font-style: normal;
}


/* ================= HEADER ================= */

.header {
    position: absolute;
    z-index: 100;

    top: 0;
    left: 0;

    width: 100%;

    color: white;

    transition:
        background .3s ease,
        backdrop-filter .3s ease;
}

.header.scrolled {
    position: fixed;

    background: rgba(43, 12, 19, .92);
    backdrop-filter: blur(14px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 90px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand__symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(217, 189, 131, .55);
    border-radius: 50%;

    color: var(--gold-light);

    font-size: 20px;
}

.brand__text {
    line-height: 1.1;
}

.brand__text strong {
    display: block;

    font-size: 12px;
    font-weight: 700;
}

.brand__text small {
    display: block;

    margin-top: 5px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    position: relative;

    color: rgba(255,255,255,.78);

    font-size: 12px;
    font-weight: 600;

    transition: color .2s ease;
}

.nav a::after {
    position: absolute;

    bottom: -8px;
    left: 0;

    width: 0;
    height: 1px;

    background: var(--gold-light);

    content: "";

    transition: width .2s ease;
}

.nav a:hover {
    color: white;
}

.nav a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;

    width: 46px;
    height: 46px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 25px;
    height: 1px;

    margin: 6px auto;

    background: white;

    transition: transform .25s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ================= HERO ================= */

.hero {
    position: relative;

    min-height: 860px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--burgundy-deep);

    color: white;
}

.hero__image,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__image {
    background: url("assets/images/hero.jpg") center / cover;
    transform: scale(1.03);
}

.hero__shade {
    background:
        linear-gradient(
            90deg,
            rgba(35, 8, 14, .98) 0%,
            rgba(45, 10, 17, .88) 43%,
            rgba(45, 10, 17, .48) 100%
        );
}

.hero__inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 90px;

    padding-top: 70px;
}

.hero__content {
    max-width: 690px;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 30px;

    color: var(--gold-light);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero__label span {
    width: 25px;
    height: 1px;

    background: var(--gold);
}

.hero h1 {
    margin-bottom: 32px;

    font-size: clamp(76px, 9vw, 125px);
    line-height: .78;
    letter-spacing: -.045em;
}

.hero h1 em {
    color: var(--gold-light);
}

.hero__content > p {
    max-width: 550px;

    margin-bottom: 40px;

    color: rgba(255,255,255,.67);

    font-size: 15px;
    line-height: 1.9;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 0 27px;

    border: 1px solid transparent;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--gold {
    background: var(--gold);
    color: white;
}

.button--gold:hover {
    background: #a17e42;
}

.button--light {
    border-color: rgba(255,255,255,.3);

    color: white;
}

.button--light:hover {
    background: white;
    color: var(--burgundy);
}

.button--burgundy {
    background: var(--burgundy);

    color: white;
}

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


/* HERO SERVICE CARD */

.hero__service {
    display: flex;
    justify-content: flex-end;
}

.service-card {
    position: relative;

    width: 100%;
    max-width: 370px;

    padding: 30px;

    border: 1px solid rgba(217,189,131,.45);

    background: rgba(43, 10, 17, .62);

    backdrop-filter: blur(8px);

    box-shadow:
        0 30px 70px rgba(0,0,0,.2);
}

.service-card::before,
.service-card::after {
    position: absolute;

    width: 16px;
    height: 16px;

    content: "";
}

.service-card::before {
    top: 9px;
    left: 9px;

    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}

.service-card::after {
    right: 9px;
    bottom: 9px;

    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.service-card__top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255,255,255,.12);

    color: var(--gold-light);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.service-card__cross {
    font-size: 17px;
}

.service-card__date {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    margin-top: 25px;
}

.service-card__date strong {
    font-size: 13px;
    font-weight: 600;
}

.service-card__date span {
    font-family: "Cormorant Garamond", serif;

    color: var(--gold-light);

    font-size: 45px;
    line-height: 1;
}

.service-card__title {
    margin-top: 20px;

    font-family: "Cormorant Garamond", serif;

    font-size: 38px;
    line-height: .9;
}

.service-card__line {
    width: 50px;
    height: 1px;

    margin: 28px 0;

    background: var(--gold);
}

.service-card__place {
    display: flex;
    gap: 10px;

    color: rgba(255,255,255,.6);

    font-size: 11px;
}

.service-card__place span {
    color: var(--gold-light);
}

.hero__scroll {
    position: absolute;
    z-index: 3;

    bottom: 30px;
    left: 50%;

    display: flex;
    align-items: center;
    gap: 14px;

    transform: translateX(-50%);

    color: rgba(255,255,255,.5);

    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero__scroll i {
    width: 40px;
    height: 1px;

    background: var(--gold);
}


/* ================= ABOUT ================= */

.about {
    background: var(--white);
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;

    margin-bottom: 75px;
}

.section-intro__text {
    display: flex;
    align-items: flex-end;
}

.section-intro__text p {
    max-width: 480px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-card {
    min-height: 360px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 38px;

    border-right: 1px solid var(--border);
}

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

.about-card--main {
    background: var(--cream);
}

.about-card__number {
    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.about-card__icon {
    display: block;

    margin-bottom: 20px;

    color: var(--gold);

    font-size: 30px;
}

.about-card h3 {
    margin-bottom: 12px;

    font-size: 38px;
    line-height: 1;
}

.about-card p {
    max-width: 290px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.8;
}


/* ================= SERVICES ================= */

.services {
    position: relative;

    padding: 130px 0;

    overflow: hidden;

    background: var(--burgundy-dark);

    color: white;
}

.services__pattern {
    position: absolute;
    inset: 0;

    opacity: .04;

    background-image:
        radial-gradient(
            circle at center,
            var(--gold-light) 0 1px,
            transparent 1px
        );

    background-size: 28px 28px;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services__heading {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 100px;

    align-items: end;

    margin-bottom: 70px;
}

.services__heading p {
    color: rgba(255,255,255,.52);

    font-size: 12px;
    line-height: 1.8;
}

.services h2 {
    font-size: clamp(55px, 6vw, 80px);
}

.schedule {
    border-top: 1px solid rgba(255,255,255,.15);
}

.schedule-row {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    align-items: center;
    gap: 30px;

    min-height: 160px;

    border-bottom: 1px solid rgba(255,255,255,.15);

    transition: background .25s ease;
}

.schedule-row:hover,
.schedule-row--featured {
    background: rgba(255,255,255,.035);
}

.schedule-date {
    width: 72px;
    height: 82px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(217,189,131,.35);
}

.schedule-date span {
    color: var(--gold-light);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}

.schedule-date strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 38px;
    font-weight: 500;
    line-height: 1;
}

.schedule-main > span {
    color: var(--gold-light);

    font-size: 11px;
    font-weight: 700;
}

.schedule-main h3 {
    margin: 4px 0;

    font-size: 31px;
}

.schedule-main p {
    color: rgba(255,255,255,.42);

    font-size: 11px;
}

.schedule-arrow {
    color: var(--gold-light);

    font-size: 25px;

    transition: transform .25s ease;
}

.schedule-row:hover .schedule-arrow {
    transform: translateX(7px);
}

.services__footer {
    display: flex;
    align-items: center;
    gap: 20px;

    max-width: 620px;

    margin: 55px auto 0;

    text-align: center;
}

.services__footer span {
    color: var(--gold);

    font-size: 25px;
}

.services__footer p {
    color: rgba(255,255,255,.48);

    font-family: "Cormorant Garamond", serif;

    font-size: 19px;
}


/* ================= LIFE ================= */

.life {
    background: var(--cream);
}

.life-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;

    align-items: center;
}

.life-image {
    position: relative;

    min-height: 620px;

    background:
        linear-gradient(
            to top,
            rgba(48,12,20,.82),
            transparent 55%
        ),
        url("assets/images/community.jpg")
        center / cover;
}

.life-image__frame {
    position: absolute;
    inset: 22px;

    border: 1px solid rgba(217,189,131,.5);

    pointer-events: none;
}

.life-quote {
    position: absolute;

    right: 35px;
    bottom: 35px;
    left: 35px;

    padding: 28px;

    background: rgba(48,12,20,.72);

    backdrop-filter: blur(8px);

    color: white;
}

.life-quote > span {
    display: block;

    margin-bottom: -10px;

    color: var(--gold-light);

    font-family: Georgia, serif;

    font-size: 50px;
    line-height: .5;
}

.life-quote p {
    font-family: "Cormorant Garamond", serif;

    font-size: 26px;
    line-height: 1.05;
}

.life-quote small {
    display: block;

    margin-top: 12px;

    color: var(--gold-light);

    font-size: 9px;
    letter-spacing: .1em;
}

.life-content__lead {
    max-width: 500px;

    margin: 30px 0 45px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.9;
}

.life-list {
    border-top: 1px solid var(--border);
}

.life-list__item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);
}

.life-list__item > span {
    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
}

.life-list__item strong {
    display: block;

    margin-bottom: 3px;

    font-family: "Cormorant Garamond", serif;

    font-size: 23px;
}

.life-list__item p {
    color: var(--muted);

    font-size: 11px;
}


/* ================= CONTACTS ================= */

.contacts {
    display: grid;
    grid-template-columns: 1.15fr .85fr;

    min-height: 680px;
}

.contacts__map {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #d8d2c5,
            #eeeae0
        );
}

.map-grid {
    position: absolute;
    inset: -20%;

    opacity: .45;

    background-image:
        linear-gradient(
            35deg,
            transparent 45%,
            rgba(101,29,41,.1) 46%,
            transparent 47%
        ),
        linear-gradient(
            120deg,
            transparent 48%,
            rgba(101,29,41,.08) 49%,
            transparent 50%
        );

    background-size: 150px 110px;

    transform: rotate(-8deg);
}

.map-pin {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--gold);

    border-radius: 50%;

    background: rgba(101,29,41,.92);

    color: var(--gold-light);

    font-size: 32px;

    transform: translate(-50%, -50%);
}

.map-pin::before {
    position: absolute;

    inset: -14px;

    border: 1px solid rgba(101,29,41,.2);

    border-radius: 50%;

    content: "";
}

.map-label {
    position: absolute;

    left: 50%;
    bottom: 55px;

    padding: 14px 20px;

    background: white;

    box-shadow: 0 15px 40px rgba(0,0,0,.1);

    transform: translateX(-50%);
}

.map-label strong,
.map-label span {
    display: block;
}

.map-label strong {
    color: var(--burgundy);

    font-family: "Cormorant Garamond", serif;

    font-size: 21px;
}

.map-label span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}

.contacts__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px;

    background: var(--burgundy);

    color: white;
}

.contacts__content h2 {
    font-size: clamp(55px, 6vw, 75px);
}

.contacts__content h2 em {
    color: var(--gold-light);
}

.contacts__content > p {
    max-width: 450px;

    margin: 30px 0 45px;

    color: rgba(255,255,255,.58);

    font-size: 13px;
    line-height: 1.9;
}

.contact-list {
    margin-bottom: 35px;

    border-top: 1px solid rgba(255,255,255,.14);
}

.contact {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(255,255,255,.14);
}

.contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(217,189,131,.35);

    color: var(--gold-light);
}

.contact small {
    display: block;

    margin-bottom: 3px;

    color: rgba(255,255,255,.4);

    font-size: 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact strong {
    font-size: 12px;
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 15px;
}

.contact-socials a {
    color: var(--gold-light);

    font-size: 12px;

    border-bottom: 1px solid var(--gold);
}

.contacts__content .button {
    align-self: flex-start;
}


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

.footer {
    padding: 32px 0;

    background: var(--burgundy-deep);

    color: white;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;
}

.brand--footer {
    opacity: .8;
}

.footer__center {
    text-align: center;

    color: var(--gold);

    font-family: "Cormorant Garamond", serif;

    font-size: 20px;
}

.footer__copyright {
    text-align: right;

    color: rgba(255,255,255,.35);

    font-size: 9px;
}


/* ================= ORNAMENT ================= */

.hero__ornament {
    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(217,189,131,.08);

    border-radius: 50%;
}

.hero__ornament::before,
.hero__ornament::after {
    position: absolute;

    inset: 20px;

    border: 1px solid rgba(217,189,131,.06);
    border-radius: 50%;

    content: "";
}

.hero__ornament--left {
    top: 160px;
    left: -190px;
}

.hero__ornament--right {
    right: -180px;
    bottom: 50px;
}


/* ================= ANIMATIONS ================= */

.hero__content,
.hero__service {
    animation: heroUp .9s ease both;
}

.hero__service {
    animation-delay: .15s;
}

@keyframes heroUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero__service {
        display: none;
    }

    .section-intro,
    .services__heading {
        gap: 50px;
    }

    .life-grid {
        gap: 60px;
    }

    .contacts__content {
        padding: 60px 45px;
    }
}


@media (max-width: 800px) {

    .section {
        padding: 90px 0;
    }

    .nav {
        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;

        width: min(320px, 85vw);

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 40px;

        background: var(--burgundy-deep);

        transform: translateX(100%);

        transition: transform .3s ease;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        padding: 12px 0;

        font-family: "Cormorant Garamond", serif;

        color: white;

        font-size: 30px;
        font-weight: 500;
    }

    .menu-button {
        position: relative;
        z-index: 101;

        display: block;
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: 300px;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .about-card:last-child {
        border-bottom: 0;
    }

    .services__heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .life-grid {
        grid-template-columns: 1fr;
    }

    .life-image {
        min-height: 500px;
    }

    .contacts {
        grid-template-columns: 1fr;
    }

    .contacts__map {
        min-height: 450px;
    }

    .footer__inner {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .footer__center,
    .footer__copyright {
        text-align: left;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(100% - 32px, var(--container));
    }

    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: clamp(65px, 19vw, 100px);
    }

    .hero__content > p {
        font-size: 13px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .section-intro {
        margin-bottom: 50px;
    }

    .schedule-row {
        grid-template-columns: 65px 1fr 20px;
        gap: 15px;

        min-height: 140px;
    }

    .schedule-date {
        width: 60px;
        height: 70px;
    }

    .schedule-date strong {
        font-size: 31px;
    }

    .schedule-main h3 {
        font-size: 24px;
    }

    .schedule-main p {
        font-size: 10px;
    }

    .services__footer {
        align-items: flex-start;
    }

    .life-image {
        min-height: 430px;
    }

    .life-quote {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .contacts__content {
        padding: 70px 25px;
    }

    .contacts__map {
        min-height: 400px;
    }

    .map-label {
        width: max-content;
        max-width: calc(100% - 30px);
    }

    .hero__scroll {
        display: none;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ================= CHURCH PHOTO ================= */

.church-photo {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--burgundy-deep);
    color: white;
}

.church-photo__image {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(34, 11, 17, .9) 0%,
            rgba(34, 11, 17, .5) 55%,
            rgba(34, 11, 17, .25) 100%
        ),
        url("assets/images/church.jpg")
        center / cover;
}

.church-photo__content {
    position: relative;
    z-index: 1;

    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.church-photo__content h2 {
    max-width: 600px;

    font-size: clamp(60px, 7vw, 90px);
}

.church-photo__content p {
    max-width: 430px;

    margin-top: 30px;

    color: rgba(255,255,255,.65);

    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 600px) {

    .church-photo {
        min-height: 520px;
    }

    .church-photo__content {
        width: calc(100% - 32px);
    }
}
