/* ==========================================================
   28 PRIVÉ — KEYHELD METHOD NEW HOME

   Desktop and tablet styles preserved.
   Mobile typography updated at 767px and below.
========================================================== */

.keyheld-method {
    --km-section: #0d264f;
    --km-card: #0d2041;
    --km-gold: #c9a668;
    --km-ivory: #faf7f0;
    --km-border: rgba(200, 211, 228, .55);
    --km-overlay-opacity: .35;
    --prive-content-gutter: clamp(24px, 5vw, 96px);

    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding: 64px 0 68px;
    background: var(--km-section);
    color: var(--km-ivory);
    overflow: hidden;
}

.keyheld-method,
.keyheld-method *,
.keyheld-method *::before,
.keyheld-method *::after {
    box-sizing: border-box;
}


/* ==========================================================
   BACKGROUND TEXTURE
========================================================== */

.keyheld-method__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

.keyheld-method::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(13, 38, 79, var(--km-overlay-opacity));
    pointer-events: none;
}


/* ==========================================================
   CONTENT CONTAINER
========================================================== */

.keyheld-method__container {
    position: relative;
    width: calc(100% - (2 * var(--prive-content-gutter)));
    max-width: 1720px;
    margin: 0 auto;
    padding: 0;
}


/* ==========================================================
   SECTION HEADING
========================================================== */

.keyheld-method__heading {
    margin: 0 0 40px;
    text-align: start;
}

.keyheld-method__subtitle {
    margin: 0 0 10px;
    color: var(--km-gold);
    font-family: "EB Garamond", Georgia, serif !important;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .06em;
}

.keyheld-method__title {
    margin: 0;
    color: var(--km-ivory);
    font-family: "EB Garamond", Georgia, serif !important;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.16;
}


/* ==========================================================
   CARD GRID
========================================================== */

.keyheld-method__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.keyheld-method__card {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    min-height: 255px;
    padding: 25px 24px 30px;
    text-align: start;
    background: var(--km-card);
    border: 1px solid var(--km-border);
    border-radius: 0;
    box-shadow: none;
    transition: border-color .25s ease;
}

.keyheld-method__card:hover {
    border-color: var(--km-gold);
}


/* ==========================================================
   CARD ICON
========================================================== */

.keyheld-method__icon {
    display: flex;
    flex: 0 0 auto;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: 62px;
    margin: 0 0 13px;
}

.keyheld-method__icon img {
    display: block;
    width: 58px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
}


/* ==========================================================
   CARD TITLE
   Desktop typography preserved
========================================================== */

.keyheld-method__card-title {
    margin: 0 0 12px;
    font-family: "EB Garamond", Georgia, serif !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--km-gold);
}


/* ==========================================================
   CARD DESCRIPTION
   Desktop typography preserved
========================================================== */

.keyheld-method__card-text,
.keyheld-method__card-text p,
.keyheld-method__card-text li {
    font-family: "EB Garamond", Georgia, serif !important;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.42;
    color: var(--km-ivory);
}

.keyheld-method__card-text {
    width: 100%;
    margin: 0;
    overflow-wrap: break-word;
}

.keyheld-method__card-text p {
    margin: 0;
}

.keyheld-method__card-text p + p {
    margin-top: 10px;
}


/* ==========================================================
   LARGE DESKTOP — 1440px+
========================================================== */

@media (min-width: 1440px) {

    .keyheld-method__grid {
        gap: 25px;
    }

}


/* ==========================================================
   TABLET — 768px TO 1199px
   No typography changes
========================================================== */

@media (min-width: 768px) and (max-width: 1199px) {

    .keyheld-method {
        --prive-content-gutter: 40px;
        padding: 52px 0 56px;
    }

    .keyheld-method__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .keyheld-method__card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

}


/* ==========================================================
   MOBILE — 767px AND BELOW

   Section title: 23px / 500
   Card title: 23px / 500
   Description: 15.5px / 400
   Button: 15.5px / 400
========================================================== */

@media (max-width: 767px) {

    .keyheld-method {
        --prive-content-gutter: 24px;
        padding: 38px 0 42px;
    }

    .keyheld-method__heading {
        margin-bottom: 28px;
    }

    /* Subtitle unchanged */

    .keyheld-method__subtitle {
        font-size: 19px;
    }

    /* MOBILE SECTION TITLE */

    .keyheld-method .keyheld-method__title {
        font-size: 21px !important;
        font-weight: 500 !important;
    }

    /* Mobile single-column grid */

    .keyheld-method__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .keyheld-method__card {
        min-height: 0;
        padding: 24px 20px 28px;
    }

    /* MOBILE CARD TITLE */

    .keyheld-method .keyheld-method__card-title {
        font-size: 21px !important;
        font-weight: 500 !important;
    }

    /* MOBILE CARD DESCRIPTION */

    .keyheld-method .keyheld-method__card-text,
    .keyheld-method .keyheld-method__card-text p,
    .keyheld-method .keyheld-method__card-text li {
        font-size: 14.5px !important;
        font-weight: 400 !important;
    }

    /* MOBILE BUTTON / LINK, IF PRESENT */

    .keyheld-method .keyheld-method__button,
    .keyheld-method .keyheld-method__card-button {
        font-size: 15.5px !important;
        font-weight: 400 !important;
    }

}


/* ==========================================================
   SMALL MOBILE — 380px AND BELOW
========================================================== */

@media (max-width: 380px) {

    .keyheld-method {
        --prive-content-gutter: 20px;
    }

    /* Keep requested 23px title on small mobiles */

    .keyheld-method .keyheld-method__title {
        font-size: 23px !important;
        font-weight: 500 !important;
    }

    .keyheld-method__card {
        padding-inline: 15px;
    }

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .keyheld-method__card {
        transition: none;
    }

}
