@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

/* ==================================================
   Variables
================================================== */

:root {
    --home-cream: #f1e8d8;
    --home-dark-cream: #e9dbc0;
    --home-gold: #c49a3b;
    --home-light-gold: #ddcba9;
    --home-white: #fffdf8;
    --home-black: #10100f;
    --home-text: #20201e;
    --home-muted: #706955;
    --home-max-width: 1640px;
}

/* ==================================================
   Base styles
================================================== */

.home-page {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--home-cream);
    color: var(--home-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-page h1,
.home-page h2,
.home-page h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

.home-page a {
    color: inherit;
    text-decoration: none;
}

.home-page img {
    display: block;
    max-width: 100%;
}

/* ==================================================
   Shared components
================================================== */

.section-eyebrow {
    color: var(--home-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.button {
    min-height: 40px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.button-gold {
    border-color: var(--home-gold);
    background: var(--home-gold);
    color: var(--home-black);
}

.button-gold:hover {
    border-color: var(--home-white);
    background: var(--home-white);
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--home-white);
}

.button-outline:hover {
    border-color: var(--home-gold);
    background: var(--home-gold);
    color: var(--home-black);
}

.text-link {
    max-width: 240px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--home-light-gold);
    color: var(--home-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.4;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.text-link:hover {
    padding-left: 5px;
    color: var(--home-gold);
}

.text-link-arrow {
    color: var(--home-gold);
    font-size: 17px;
    font-weight: 400;
}

/* ==================================================
   Hero
================================================== */

.home-hero {
    position: relative;
    min-height: 566px;
    overflow: hidden;
    isolation: isolate;
    background: var(--home-black);
    color: var(--home-white);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: url("../images/home-hero.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    filter: grayscale(100%);
    transform: scale(1.01);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.72) 34%,
            rgba(0, 0, 0, 0.22) 75%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.home-hero-inner {
    position: relative;
    width: min(calc(100% - 9vw), var(--home-max-width));
    min-height: 566px;
    margin: 0 auto;
    padding: 82px 0 72px 48px;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 430px;
}

.home-hero-eyebrow {
    margin-bottom: 16px;
    color: var(--home-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0;
    color: var(--home-white);
    font-size: clamp(64px, 7vw, 100px);
    line-height: 0.84;
    letter-spacing: -4px;
}

.home-hero h1 span {
    color: var(--home-gold);
}

.home-hero-description {
    max-width: 390px;
    margin: 26px 0 0;
    color: var(--home-white);
    font-size: 14px;
    line-height: 1.45;
}

.home-hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero timeline */
.home-hero-timeline {
    position: absolute;
    top: 163px;
    left: -18px;
    width: 48px;
    height: 350px;
    border-right: 1px solid var(--home-gold);
}

.home-hero-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--home-gold);
}

.timeline-dot {
    position: absolute;
    right: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--home-gold);
}

.timeline-dot-top {
    top: 80px;
}

.timeline-dot-middle {
    top: 255px;
}

.timeline-label {
    position: absolute;
    left: 0;
    color: var(--home-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.timeline-label-top {
    top: -18px;
}

.timeline-label-middle {
    top: 158px;
}

.timeline-label-bottom {
    bottom: -20px;
}

/* Hero caption */
.home-hero-caption {
    position: absolute;
    right: 28px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--home-white);
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.2;
    text-align: right;
}

/* ==================================================
   Feature cards
================================================== */

.home-feature-section {
    background: var(--home-cream);
    border-bottom: 1px solid var(--home-light-gold);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.25fr;
    width: 100%;
}

.home-feature-card,
.home-visit-card {
    min-height: 198px;
    padding: 28px 4.3vw 25px;
    border-right: 1px solid var(--home-light-gold);
}

.home-feature-card:last-of-type {
    border-left: 0;
}

.feature-icon {
    height: 24px;
    color: var(--home-gold);
    font-size: 20px;
}

.home-feature-card h2 {
    margin: 10px 0 12px;
    font-size: 27px;
    line-height: 0.95;
    letter-spacing: -1px;
}

.home-feature-card p {
    max-width: 220px;
    min-height: 42px;
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.35;
}

.home-feature-card .text-link {
    max-width: 180px;
    border-top: 0;
    padding-top: 0;
    font-size: 10px;
}

/* Visit card */
.home-visit-card {
    padding-left: 4.3vw;
    padding-right: 4.3vw;
    border-right: 0;
}

.home-visit-eyebrow {
    margin-bottom: 12px;
    color: var(--home-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.home-visit-row {
    min-height: 48px;
    padding: 11px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid var(--home-light-gold);
    font-size: 12px;
    line-height: 1.35;
}

.home-visit-row:last-child {
    border-bottom: 1px solid var(--home-light-gold);
}

.home-visit-icon {
    color: var(--home-gold);
    font-size: 15px;
}

.home-visit-row small {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================================================
   Archive highlight
================================================== */

.archive-highlight {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 415px;
    background: var(--home-cream);
    border-bottom: 1px solid var(--home-light-gold);
}

.archive-highlight-copy {
    padding: 82px 5vw 65px 4.5vw;
}

.archive-highlight-copy h2 {
    margin: 15px 0 20px;
    font-size: clamp(48px, 5vw, 70px);
    line-height: 0.88;
    letter-spacing: -3px;
}

.archive-highlight-copy h2 span {
    color: var(--home-gold);
}

.archive-highlight-copy h3 {
    margin: 0 0 18px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
}

.archive-highlight-copy p {
    max-width: 330px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}

.archive-highlight-copy .text-link {
    max-width: 220px;
    border-top: 0;
    padding-top: 0;
}

.archive-highlight-image {
    position: relative;
    min-height: 415px;
    overflow: hidden;
}

.archive-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.image-caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: var(--home-white);
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
}

/* ==================================================
   Statistics
================================================== */

.home-statistics {
    background: var(--home-dark-cream);
}

.home-statistics-inner {
    width: min(calc(100% - 9vw), var(--home-max-width));
    margin: 0 auto;
    padding: 65px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.statistics-introduction h2 {
    margin: 14px 0 0;
    font-size: clamp(42px, 4.8vw, 70px);
    line-height: 0.9;
    letter-spacing: -3px;
}

.statistics-introduction h2 span {
    color: var(--home-gold);
}

.statistics-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.statistic {
    min-height: 88px;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(161, 114, 50, 0.45);
}

.statistic strong {
    color: #a8532e;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
    line-height: 0.9;
}

.statistic span {
    margin-top: 10px;
    color: var(--home-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.25;
    text-transform: uppercase;
}

/* ==================================================
   Support section
================================================== */

.home-support {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    isolation: isolate;
    background: var(--home-black);
    color: var(--home-white);
}

.home-support::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: url("../images/memory-section.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    filter: grayscale(100%);
}

.home-support::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.45) 62%,
            rgba(0, 0, 0, 0.25) 100%
        );
}

.home-support-inner {
    width: min(calc(100% - 9vw), var(--home-max-width));
    min-height: 310px;
    margin: 0 auto;
    padding: 65px 0;
}

.home-support h2 {
    margin: 14px 0 26px;
    color: var(--home-white);
    font-size: clamp(48px, 5vw, 72px);
    line-height: 0.87;
    letter-spacing: -3px;
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 1000px) {
    .home-hero-inner {
        padding-left: 42px;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-feature-card,
    .home-visit-card {
        border-bottom: 1px solid var(--home-light-gold);
    }

    .home-visit-card {
        grid-column: span 2;
    }

    .archive-highlight {
        grid-template-columns: 1fr 1fr;
    }

    .home-statistics-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 700px) {
    .home-hero {
        min-height: 620px;
    }

    .home-hero-inner {
        width: calc(100% - 12vw);
        min-height: 620px;
        padding: 62px 0 60px 34px;
    }

    .home-hero-timeline {
        top: 145px;
        width: 30px;
        height: 350px;
    }

    .home-hero h1 {
        font-size: clamp(58px, 16vw, 84px);
        letter-spacing: -3px;
    }

    .home-hero-description {
        font-size: 14px;
    }

    .home-hero-caption {
        right: 12px;
        bottom: 18px;
        font-size: 9px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-card,
    .home-visit-card {
        min-height: auto;
        padding: 28px 8vw;
        border-right: 0;
        border-bottom: 1px solid var(--home-light-gold);
    }

    .home-visit-card {
        grid-column: auto;
    }

    .archive-highlight {
        grid-template-columns: 1fr;
    }

    .archive-highlight-copy {
        padding: 65px 8vw 55px;
    }

    .archive-highlight-image {
        min-height: 320px;
    }

    .home-statistics-inner {
        width: calc(100% - 12vw);
        padding: 58px 0;
    }

    .statistics-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .statistic {
        min-height: auto;
        padding: 18px 0 18px 20px;
    }

    .home-support-inner {
        width: calc(100% - 12vw);
        min-height: 360px;
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .home-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero-actions .button {
        width: 100%;
        max-width: 230px;
    }

    .archive-highlight-copy h2,
    .home-support h2 {
        font-size: 50px;
    }

    .statistics-introduction h2 {
        font-size: 46px;
    }
}
