/* =========================================
   ROOT
========================================= */

:root {
    --bg: #0b100d;
    --bg-soft: #111a15;
    --forest: #17231c;
    --forest-light: #233329;

    --cream: #f5efe3;
    --cream-soft: #ddd5c5;

    --gold: #c6a66a;
    --gold-light: #e3c78d;

    --white: #ffffff;

    --text-dark: #20251f;
    --text-muted: #687069;

    --glass: rgba(255, 255, 255, 0.07);
    --glass-light: rgba(255, 255, 255, 0.12);

    --border: rgba(198, 166, 106, 0.25);

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --sans:
        "Inter",
        Arial,
        sans-serif;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.small-container {
    width: min(900px, calc(100% - 40px));
}


/* =========================================
   DEMO NOTICE
========================================= */

.demo-notice {
    min-height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 7px 20px;

    background: var(--gold);
    color: #121713;

    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;

    letter-spacing: 0.03em;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 72px;

    display: flex;
    align-items: center;

    background: rgba(10, 15, 12, 0.87);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--cream);

    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-cross {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.78rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.menu-btn {
    display: none;

    border: 0;
    background: transparent;

    color: white;
    font-size: 1.7rem;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 107px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--bg);
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(198, 166, 106, 0.15),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(67, 97, 74, 0.2),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #080d0a,
            #16221b 55%,
            #0b100d
        );
}

.hero-container {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;

    padding: 65px 0;

    display: grid;
    grid-template-columns:
        minmax(300px, 0.9fr)
        minmax(380px, 1.1fr);

    align-items: center;
    gap: 80px;
}


/* Portrait */

.hero-image-wrap {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;

    width: min(410px, 100%);

    border-radius: 220px 220px 30px 30px;

    padding: 7px;

    background:
        linear-gradient(
            145deg,
            var(--gold),
            rgba(198, 166, 106, 0.1),
            var(--gold)
        );

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.4);
}

.portrait-frame::before {
    content: "";

    position: absolute;
    inset: -18px;

    border:
        1px solid rgba(198, 166, 106, 0.18);

    border-radius: 230px 230px 38px 38px;

    pointer-events: none;
}

.portrait-frame img {
    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    border-radius: 214px 214px 24px 24px;
}


/* Hero content */

.hero-content {
    color: white;
}

.eyebrow,
.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 0.72rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero h1 {
    margin-bottom: 8px;

    color: var(--cream);

    font-family: var(--serif);
    font-size: clamp(3.6rem, 7vw, 6.8rem);
    font-weight: 500;
    line-height: 0.95;
}

.life-dates {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 24px 0;

    color: var(--gold-light);

    font-family: var(--serif);
    font-size: 1.12rem;

    letter-spacing: 0.06em;
}

.hero-quote {
    max-width: 550px;

    margin-bottom: 16px;

    color: var(--cream);

    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-style: italic;
    line-height: 1.3;
}

.hero-description {
    max-width: 520px;

    color: rgba(255, 255, 255, 0.67);

    font-size: 0.94rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    min-height: 47px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 11px 21px;

    border-radius: 100px;
    border: 1px solid transparent;

    font-size: 0.78rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gold);
    color: #111712;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-glass {
    color: white;

    background: rgba(255, 255, 255, 0.07);

    border-color:
        rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(12px);
}

.btn-outline {
    color: var(--forest);

    background: transparent;

    border-color:
        rgba(23, 35, 28, 0.3);
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-section {
    position: relative;
    z-index: 5;

    margin-top: -25px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background:
        rgba(250, 246, 238, 0.88);

    border:
        1px solid rgba(255, 255, 255, 0.7);

    border-radius: 20px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);

    overflow: hidden;
}

.quick-card {
    min-height: 95px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px;

    border: 0;
    border-right:
        1px solid rgba(24, 36, 30, 0.09);

    background: transparent;

    text-align: left;

    cursor: pointer;
}

.quick-card:last-child {
    border-right: 0;
}

.quick-card > i {
    color: var(--gold);

    font-size: 1.45rem;
}

.quick-card span {
    display: flex;
    flex-direction: column;

    color: var(--text-muted);

    font-size: 0.7rem;
}

.quick-card strong {
    margin-bottom: 2px;

    color: var(--forest);

    font-family: var(--serif);
    font-size: 1rem;
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    padding: 90px 0;
}

.section-dark {
    background: var(--bg-soft);
    color: white;
}

.section-heading {
    max-width: 650px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-heading h2,
.legacy-content h2,
.livestream h2,
.acknowledgement h2,
.demo-cta h2 {
    margin-bottom: 12px;

    color: var(--forest);

    font-family: var(--serif);
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 500;
    line-height: 1;
}

.section-heading p {
    color: var(--text-muted);

    font-size: 0.88rem;
}

.light-heading h2 {
    color: var(--cream);
}

.light-heading p {
    color: rgba(255, 255, 255, 0.6);
}


/* =========================================
   GLASS CARDS
========================================= */

.glass-card {
    border:
        1px solid rgba(255, 255, 255, 0.65);

    background:
        rgba(255, 255, 255, 0.46);

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(25, 35, 29, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================
   ARRANGEMENTS
========================================= */

.arrangement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.arrangement-card {
    padding: 30px;

    text-align: center;
}

.card-icon {
    width: 47px;
    height: 47px;

    margin: 0 auto 16px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(198, 166, 106, 0.14);

    color: var(--gold);

    font-size: 1.2rem;
}

.arrangement-card > span {
    display: block;

    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.arrangement-card h3 {
    color: var(--forest);

    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
}

.arrangement-card p {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.78rem;
}

.text-link {
    display: inline-flex;
    gap: 6px;

    margin-top: 10px;

    color: #98783e;

    font-size: 0.74rem;
    font-weight: 600;
}


/* Programme */

.programme-card {
    margin-top: 30px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;

    padding: 28px 32px;

    border-radius: 22px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #16231b,
            #23352a
        );

    box-shadow: var(--shadow);
}

.programme-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    color: var(--gold-light);

    background:
        rgba(255, 255, 255, 0.07);

    font-size: 1.6rem;
}

.programme-content .section-label {
    margin-bottom: 3px;
}

.programme-content h3 {
    margin-bottom: 3px;

    color: var(--cream);

    font-family: var(--serif);
    font-size: 1.45rem;
}

.programme-content p {
    color: rgba(255, 255, 255, 0.6);

    font-size: 0.78rem;
}


/* =========================================
   LEGACY
========================================= */

.legacy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 70px;
}

.legacy-image {
    position: relative;
}

.legacy-image::before {
    content: "";

    position: absolute;

    left: -12px;
    bottom: -12px;

    width: 65%;
    height: 70%;

    border-left:
        1px solid var(--gold);

    border-bottom:
        1px solid var(--gold);
}

.legacy-image img {
    position: relative;

    width: 100%;
    height: 480px;

    object-fit: cover;

    border-radius: 220px 220px 20px 20px;
}

.legacy-content h2 {
    color: var(--cream);
}

.legacy-content > p {
    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.64);

    font-size: 0.88rem;
}

blockquote {
    margin-top: 28px;

    padding-left: 20px;

    border-left:
        2px solid var(--gold);

    color: var(--gold-light);

    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
}


/* =========================================
   TRIBUTES
========================================= */

.tribute-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tribute-card {
    padding: 30px;
}

.tribute-card > i {
    display: block;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 1.7rem;
}

.tribute-card p {
    margin-bottom: 15px;

    color: #555e56;

    font-family: var(--serif);
    font-size: 1.12rem;
    font-style: italic;
}

.tribute-card span {
    color: var(--forest);

    font-size: 0.72rem;
    font-weight: 600;
}

.tribute-actions {
    margin-top: 28px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    display: grid;

    grid-template-columns:
        1.25fr 0.75fr;

    grid-template-rows:
        repeat(2, 190px);

    gap: 12px;
}

.gallery-item {
    overflow: hidden;

    border-radius: 16px;
}

.gallery-large {
    grid-row: 1 / 3;
}

.gallery img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.sample-gallery-note {
    margin-top: 18px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.68rem;
    text-align: center;
}


/* =========================================
   LIVESTREAM
========================================= */

.livestream {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;

    padding: 35px;
}

.live-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(198, 166, 106, 0.15);

    color: var(--gold);

    font-size: 1.7rem;
}

.livestream h2 {
    margin-bottom: 7px;

    font-size: 2.2rem;
}

.livestream p {
    max-width: 520px;

    color: var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================
   ACKNOWLEDGEMENT
========================================= */

.acknowledgement {
    position: relative;

    padding: 105px 0;

    background:
        url(
        "https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1800&q=85"
        )
        center / cover no-repeat;

    text-align: center;
}

.ack-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(9, 15, 11, 0.88),
            rgba(9, 15, 11, 0.94)
        );
}

.acknowledgement-content {
    position: relative;
    z-index: 2;

    max-width: 720px;

    color: white;
}

.acknowledgement h2 {
    color: var(--cream);
}

.acknowledgement p {
    color: rgba(255, 255, 255, 0.7);
}

.blessing {
    margin-top: 12px;

    color: var(--gold-light) !important;

    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
}

.memorial-mark {
    margin-top: 38px;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--cream);
}

.memorial-mark > span {
    margin-bottom: 6px;

    color: var(--gold);
}

.memorial-mark strong {
    font-family: var(--serif);
    font-size: 1.5rem;
}

.memorial-mark small {
    color: rgba(255, 255, 255, 0.45);

    font-size: 0.67rem;
}


/* =========================================
   DEMO CTA
========================================= */

.demo-cta {
    padding: 75px 0;

    background: #ede5d7;
}

.demo-cta-box {
    max-width: 800px;

    margin: auto;

    padding: 45px;

    border:
        1px solid rgba(198, 166, 106, 0.3);

    border-radius: 24px;

    background:
        rgba(255, 255, 255, 0.4);

    backdrop-filter: blur(20px);

    text-align: center;
}

.demo-cta h2 {
    font-size: 2.5rem;
}

.demo-cta p {
    max-width: 650px;

    margin: 0 auto 24px;

    color: var(--text-muted);

    font-size: 0.82rem;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 27px 0;

    background: #080d0a;

    color: rgba(255, 255, 255, 0.55);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-container > div {
    display: flex;
    flex-direction: column;
}

.footer-container strong {
    color: var(--cream);

    font-family: var(--serif);
    font-size: 1rem;
}

.footer-container span,
.footer-container p {
    font-size: 0.65rem;
}

.footer-container a {
    color: var(--gold-light);
}


/* =========================================
   MODAL
========================================= */

.sample-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.sample-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(3, 8, 5, 0.75);

    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    z-index: 2;

    width: min(420px, 100%);

    padding: 35px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 22px;

    background:
        rgba(245, 239, 227, 0.96);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);

    text-align: center;
}

.modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    border: 0;
    background: transparent;

    color: #485049;

    font-size: 1.1rem;

    cursor: pointer;
}

.modal-icon {
    width: 50px;
    height: 50px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(198, 166, 106, 0.17);

    color: #a58243;

    font-size: 1.3rem;
}

.modal-box h3 {
    margin-bottom: 7px;

    color: var(--forest);

    font-family: var(--serif);
    font-size: 1.7rem;
}

.modal-box p {
    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns:
            minmax(250px, 0.85fr)
            minmax(300px, 1.15fr);

        gap: 45px;
    }

    .quick-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-card:nth-child(2) {
        border-right: 0;
    }

    .quick-card:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(24, 36, 30, 0.09);
    }

    .arrangement-grid {
        grid-template-columns: 1fr;
    }

    .legacy-layout {
        gap: 40px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .container,
    .small-container,
    .nav-container,
    .hero-container {
        width: min(
            calc(100% - 28px),
            1180px
        );
    }

    .demo-notice {
        min-height: 31px;

        padding: 5px 12px;

        font-size: 0.62rem;
    }

    .navbar {
        height: 64px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 64px;
        left: 14px;
        right: 14px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px;

        border:
            1px solid rgba(255, 255, 255, 0.1);

        border-radius: 16px;

        background:
            rgba(12, 18, 14, 0.97);

        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3);

        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }


    /* Hero */

    .hero {
        min-height: auto;
    }

    .hero-container {
        padding: 35px 0 55px;

        grid-template-columns: 1fr;

        gap: 32px;

        text-align: center;
    }

    .hero-image-wrap {
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .portrait-frame {
        width: min(280px, 82vw);

        border-radius:
            150px 150px 22px 22px;
    }

    .portrait-frame::before {
        inset: -10px;

        border-radius:
            160px 160px 28px 28px;
    }

    .portrait-frame img {
        border-radius:
            145px 145px 17px 17px;
    }

    .hero h1 {
        font-size: clamp(
            3.2rem,
            15vw,
            4.8rem
        );
    }

    .life-dates {
        justify-content: center;

        margin: 17px 0;

        font-size: 0.93rem;
    }

    .hero-quote {
        margin-inline: auto;

        font-size: 1.45rem;
    }

    .hero-description {
        margin-inline: auto;

        font-size: 0.8rem;
    }

    .hero-actions {
        justify-content: center;

        margin-top: 24px;
    }


    /* Quick */

    .quick-section {
        margin-top: -20px;
    }

    .quick-card {
        min-height: 82px;

        padding: 14px;

        gap: 10px;
    }

    .quick-card > i {
        font-size: 1.2rem;
    }

    .quick-card strong {
        font-size: 0.9rem;
    }

    .quick-card span {
        font-size: 0.6rem;
    }


    /* Sections */

    .section {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .legacy-content h2,
    .acknowledgement h2 {
        font-size: 2.35rem;
    }

    .arrangement-card {
        padding: 24px 20px;
    }


    /* Programme */

    .programme-card {
        grid-template-columns: 1fr;

        gap: 14px;

        padding: 25px;

        text-align: center;
    }

    .programme-icon {
        margin: auto;
    }

    .programme-card .btn {
        width: 100%;
    }


    /* Legacy */

    .legacy-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .legacy-image {
        width: min(330px, 100%);

        margin-inline: auto;
    }

    .legacy-image img {
        height: 370px;
    }

    .legacy-content {
        text-align: center;
    }

    blockquote {
        padding-left: 0;

        border-left: 0;

        font-size: 1.18rem;
    }


    /* Tributes */

    .tribute-grid {
        grid-template-columns: 1fr;
    }

    .tribute-card {
        padding: 24px;
    }

    .tribute-actions {
        flex-direction: column;
    }

    .tribute-actions .btn {
        width: 100%;
    }


    /* Gallery */

    .gallery {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            240px 145px;
    }

    .gallery-large {
        grid-column: 1 / 3;
        grid-row: auto;
    }


    /* Livestream */

    .livestream {
        grid-template-columns: 1fr;

        padding: 27px;

        text-align: center;
    }

    .live-icon {
        margin: auto;
    }

    .livestream h2 {
        font-size: 2rem;
    }

    .livestream .btn {
        width: 100%;
    }


    /* Acknowledgement */

    .acknowledgement {
        padding: 80px 0;
    }


    /* Demo */

    .demo-cta {
        padding: 55px 0;
    }

    .demo-cta-box {
        padding: 30px 20px;
    }

    .demo-cta h2 {
        font-size: 2rem;
    }


    /* Footer */

    .footer-container {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-card {
        flex-direction: column;
        justify-content: center;

        text-align: center;
    }

    .quick-card span {
        align-items: center;
    }

    .life-dates {
        gap: 8px;

        font-size: 0.8rem;
    }

}