/*
Theme Name: CelebMezzo Neve Child
Template: neve
Version: 1.0
*/

/* =========================================================
   CELEBMEZZO HOMEPAGE
   Clean editorial / magazine style
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --cm-primary: #111827;
    --cm-text: #1f2937;
    --cm-muted: #6b7280;
    --cm-light: #f7f7f8;
    --cm-border: #e5e7eb;
    --cm-accent: #b91c1c;
    --cm-accent-hover: #991b1b;
    --cm-white: #ffffff;

    --cm-container: 1180px;
    --cm-radius: 8px;

    --cm-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   HOMEPAGE CONTAINER
========================================================= */

.celebmezzo-home .cm-container {
    width: min(100% - 40px, var(--cm-container));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HERO
========================================================= */

.celebmezzo-home .cm-hero {
    padding: 70px 0 62px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fafafa 55%,
            #f5f5f5 100%
        );
    border-bottom: 1px solid var(--cm-border);
}

.celebmezzo-home .cm-hero h1 {
    max-width: 900px;
    margin: 0 0 20px;

    color: var(--cm-primary);

    font-size: clamp(
        2rem,
        4vw,
        3.25rem
    );

    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.celebmezzo-home .cm-intro {
    max-width: 800px;
    margin: 0;

    color: #4b5563;

    font-size: 1.08rem;
    line-height: 1.75;
}


/* =========================================================
   SECTIONS
========================================================= */

.celebmezzo-home .cm-section {
    padding: 64px 0;
}

.celebmezzo-home .cm-section-alt {
    background: var(--cm-light);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.celebmezzo-home .cm-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.celebmezzo-home .cm-section-heading h2 {
    margin: 0;

    color: var(--cm-primary);

    font-size: clamp(
        1.55rem,
        3vw,
        2.1rem
    );

    line-height: 1.2;
    font-weight: 800;
}

.celebmezzo-home .cm-view-all {
    flex-shrink: 0;

    color: var(--cm-accent);

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;
}

.celebmezzo-home .cm-view-all:hover {
    color: var(--cm-accent-hover);
    text-decoration: underline;
}


/* =========================================================
   ARTICLE GRIDS
========================================================= */

.celebmezzo-home .cm-post-grid,
.celebmezzo-home .cm-featured-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 28px;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.celebmezzo-home .cm-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: var(--cm-white);

    border: 1px solid var(--cm-border);

    border-radius: var(--cm-radius);

    box-shadow: var(--cm-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.celebmezzo-home .cm-card:hover {
    transform: translateY(-3px);

    border-color: #d1d5db;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.09);
}


/* =========================================================
   ARTICLE IMAGE
   ALL IMAGES USE SAME 16:10 RATIO
========================================================= */

.celebmezzo-home .cm-card-image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eeeeee;

    flex-shrink: 0;
}


/* WordPress thumbnail */

.celebmezzo-home .cm-card-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: cover;

    object-position: center center;

    transition:
        transform 0.3s ease;
}


/* Image hover */

.celebmezzo-home .cm-card:hover
.cm-card-image img {
    transform: scale(1.035);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.celebmezzo-home .cm-image-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #777777;

    background: #eeeeee;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.celebmezzo-home .cm-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 19px 20px 20px;
}


/* =========================================================
   CATEGORY LABEL
========================================================= */

.celebmezzo-home .cm-category-label {
    display: block;

    margin-bottom: 8px;

    color: var(--cm-accent);

    font-size: 11px;

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================================================
   ARTICLE TITLE
========================================================= */

.celebmezzo-home .cm-card h3 {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    min-height: 2.7em;

    margin: 0 0 10px;

    color: var(--cm-primary);

    font-size: 19px;

    line-height: 1.35;

    font-weight: 700;
}

.celebmezzo-home .cm-card h3 a {
    color: inherit;

    text-decoration: none;
}

.celebmezzo-home .cm-card h3 a:hover {
    color: var(--cm-accent);
}


/* =========================================================
   CARD EXCERPT
========================================================= */

.celebmezzo-home .cm-card p {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    margin: 0 0 14px;

    color: var(--cm-muted);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   DATE
========================================================= */

.celebmezzo-home .cm-card time {
    display: block;

    margin-top: auto;

    padding-top: 8px;

    color: #8a8f98;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   READ MORE
========================================================= */

.celebmezzo-home .cm-read-more {
    display: inline-block;

    margin-top: auto;

    color: var(--cm-accent);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}

.celebmezzo-home .cm-read-more:hover {
    color: var(--cm-accent-hover);

    text-decoration: underline;
}


/* =========================================================
   FEATURED CARDS
   Same image ratio, slightly larger typography
========================================================= */

.celebmezzo-home
.cm-featured-card
.cm-card-content {
    padding: 22px;
}

.celebmezzo-home
.cm-featured-card
.cm-card h3 {
    font-size: 21px;
}


/* =========================================================
   ABOUT SECTION
========================================================= */

/* =========================================================
   ABOUT CELEBMEZZO - LEFT ALIGNED
========================================================= */

.celebmezzo-home .cm-about {
    background: var(--cm-primary);
}

.celebmezzo-home .cm-about-inner {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;

    text-align: left;
}

.celebmezzo-home .cm-about h2 {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: clamp(
        1.7rem,
        3vw,
        2.3rem
    );

    line-height: 1.2;

    font-weight: 800;
}

.celebmezzo-home .cm-about p {
    max-width: 850px;

    margin: 0 0 16px;

    color: #d1d5db;

    font-size: 16px;

    line-height: 1.8;
}

.celebmezzo-home .cm-about .cm-button {
    margin-top: 10px;
}


/* =========================================================
   ABOUT BUTTON
========================================================= */

.celebmezzo-home .cm-button {
    display: inline-block;

    margin-top: 10px;

    padding: 12px 20px;

    color: #ffffff;

    background: var(--cm-accent);

    border-radius: 6px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease;
}

.celebmezzo-home .cm-button:hover {
    color: #ffffff;

    background: var(--cm-accent-hover);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .celebmezzo-home .cm-post-grid,
    .celebmezzo-home .cm-featured-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 22px;
    }


    .celebmezzo-home .cm-section {
        padding: 54px 0;
    }


    .celebmezzo-home .cm-card-content {
        padding: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .celebmezzo-home
    .cm-container {

        width:
            min(
                100% - 28px,
                var(--cm-container)
            );
    }


    .celebmezzo-home .cm-post-grid,
    .celebmezzo-home .cm-featured-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .celebmezzo-home .cm-section {
        padding: 44px 0;
    }


    .celebmezzo-home .cm-hero {
        padding: 46px 0 40px;
    }


    .celebmezzo-home .cm-hero h1 {
        font-size: 2rem;
    }


    .celebmezzo-home .cm-intro {
        font-size: 1rem;

        line-height: 1.7;
    }


    .celebmezzo-home
    .cm-section-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .celebmezzo-home
    .cm-card h3 {

        font-size: 19px;

        min-height: 0;
    }


    .celebmezzo-home
    .cm-card-content {

        padding:
            17px
            18px
            19px;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .celebmezzo-home .cm-card,
    .celebmezzo-home .cm-card-image img {

        transition: none;
    }


    .celebmezzo-home .cm-card:hover {

        transform: none;
    }


    .celebmezzo-home
    .cm-card:hover
    .cm-card-image img {

        transform: none;
    }

}
