
/* =====================================================
   CELEBSKEY — COMMUNITIES PAGE
===================================================== */


/* =====================================================
   PAGE VARIABLES
===================================================== */

:root {
    --community-purple: #241044;
    --community-purple-light: #32184e;
    --community-gold: #d4a62a;
    --community-gold-light: #e5c177;

    --community-cream: #fffaf3;
    --community-text: #2b2032;
    --community-muted: #8a7487;
    --community-red: #bd5c55;
}


/* =====================================================
   COMMUNITY HERO
===================================================== */

.community-hero {
    position: relative;
    overflow: hidden;

    padding: 80px 0 110px;

    background: var(--community-cream);
}

.community-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;
    gap: 80px;
}

.community-hero-content {
    max-width: 560px;
}

.community-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 24px;

    color: var(--community-red);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.community-eyebrow span {
    display: inline-block;

    width: 25px;
    height: 1px;

    background: var(--community-red);
}

.community-hero h1 {
    margin: 0 0 25px;

    color: var(--community-text);

    font-size: clamp(45px, 5vw, 75px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -2px;
}

.community-hero h1 em {
    color: #674b68;

    font-family: "Playfair Display", serif;
    font-weight: 400;
}

.community-hero-description {
    max-width: 470px;

    margin: 0 0 35px;

    color: var(--community-muted);

    font-size: 16px;
    line-height: 1.9;
}

.community-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.community-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;

    padding: 16px 22px;

    background: var(--community-purple);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.3s ease;
}

.community-primary-button:hover {
    background: #4b2766;
    transform: translateY(-3px);
}

.community-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--community-purple);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.community-text-link:hover {
    color: var(--community-red);
}


/* =====================================================
   HERO VISUAL
===================================================== */

.community-hero-visual {
    position: relative;

    min-height: 530px;
}

.community-main-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 85%;
    height: 450px;

    overflow: hidden;
}

.community-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.community-small-image {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 43%;
    height: 220px;

    overflow: hidden;

    border: 10px solid var(--community-cream);
}

.community-small-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.community-hero-label {
    position: absolute;
    right: -20px;
    bottom: 70px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px 24px;

    background: var(--community-purple);
    color: #ffffff;

    box-shadow: 0 20px 45px rgba(36, 16, 68, 0.22);
}

.community-hero-label i {
    color: var(--community-gold-light);
    font-size: 23px;
}

.community-hero-label strong,
.community-hero-label small {
    display: block;
}

.community-hero-label strong {
    margin-bottom: 5px;

    font-size: 12px;
}

.community-hero-label small {
    color: #d8c6df;

    font-size: 10px;
}

.community-hero-decoration {
    position: absolute;
    z-index: 1;

    top: -25px;
    right: -25px;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(212, 166, 42, 0.45);

    pointer-events: none;
}


/* =====================================================
   COMMUNITY INTRO
===================================================== */

.community-intro {
    padding: 100px 0 85px;

    background: #ffffff;

    text-align: center;
}

.community-intro-inner {
    max-width: 750px;
    margin: 0 auto;
}

.community-intro .community-eyebrow {
    justify-content: center;
}

.community-intro h2 {
    margin: 0 0 25px;

    color: var(--community-text);

    font-size: clamp(35px, 4vw, 55px);
    font-weight: 500;
    line-height: 1.12;
}

.community-intro h2 em {
    color: #674b68;

    font-family: "Playfair Display", serif;
    font-weight: 400;
}

.community-intro-description {
    max-width: 570px;

    margin: 0 auto;

    color: var(--community-muted);

    font-size: 16px;
    line-height: 1.9;
}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.community-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 45px;
    margin-bottom: 48px;
}

.community-section-heading h2 {
    margin: 0;

    color: var(--community-text);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
}

.community-section-heading h2 em {
    color: #674b68;

    font-family: "Playfair Display", serif;
    font-weight: 400;
}

.community-section-heading > p {
    max-width: 310px;

    margin: 0;

    color: var(--community-muted);

    font-size: 13px;
    line-height: 1.8;
}


/* =====================================================
   COMMUNITY CATEGORIES
   TRUE ASYMMETRICAL LAYOUT
===================================================== */

.community-categories {
    padding: 100px 0;

    background: var(--community-cream);
}

.community-category-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 230px 230px 190px;

    grid-template-areas:
        "featured featured professional"
        "featured featured creative"
        "wellness wellness wellness";

    gap: 16px;
}


/* =====================================================
   CATEGORY CARD BASE
===================================================== */

.community-category-card {
    position: relative;

    display: block;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background: var(--community-purple);

    text-decoration: none;

    isolation: isolate;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.community-category-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 20px 40px rgba(36, 16, 68, 0.20);
}


/* =====================================================
   GRID POSITIONS
===================================================== */

.category-featured {
    grid-area: featured;
}

.category-professional {
    grid-area: professional;
}

.category-creative {
    grid-area: creative;
}

.category-wellness {
    grid-area: wellness;
}


/* =====================================================
   CATEGORY IMAGE
===================================================== */

.community-category-card > img {
    position: absolute;
    inset: 0;

    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.65s ease;
}

.community-category-card:hover > img {
    transform: scale(1.07);
}


/* =====================================================
   IMAGE OVERLAY
===================================================== */

.category-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            110deg,
            rgba(25, 11, 39, 0.94) 0%,
            rgba(25, 11, 39, 0.62) 42%,
            rgba(25, 11, 39, 0.20) 100%
        );

    pointer-events: none;

    transition: background 0.35s ease;
}

.community-category-card:hover .category-overlay {
    background:
        linear-gradient(
            110deg,
            rgba(25, 11, 39, 0.97) 0%,
            rgba(25, 11, 39, 0.70) 48%,
            rgba(25, 11, 39, 0.32) 100%
        );
}


/* =====================================================
   CATEGORY NUMBER
===================================================== */

.category-number {
    position: absolute;
    top: 16px;
    left: 18px;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: rgba(36, 16, 68, 0.92);
    color: #f5d477;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   CATEGORY CONTENT
===================================================== */

.category-card-content {
    position: absolute;

    right: 25px;
    bottom: 22px;
    left: 25px;

    z-index: 3;
}

.category-label {
    display: block;

    margin-bottom: 9px;

    color: #f0c94d;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.category-card-content h3 {
    max-width: 450px;

    margin: 0 0 8px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.category-card-content p {
    max-width: 310px;

    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    line-height: 1.5;
}


/* =====================================================
   FEATURED CARD TYPOGRAPHY
===================================================== */

.category-featured .category-card-content h3 {
    max-width: 500px;

    font-size: 42px;
    line-height: 1.05;
}

.category-featured .category-card-content p {
    font-size: 14px;
}


/* =====================================================
   ARROW BUTTON
===================================================== */

.category-arrow {
    position: absolute;

    right: 0;
    bottom: 0;

    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #f0c54c;
    color: var(--community-purple);

    font-size: 11px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.community-category-card:hover .category-arrow {
    background: #ffffff;

    transform: rotate(45deg);
}


/* =====================================================
   WELLNESS FULL-WIDTH CARD
===================================================== */

.category-wellness .category-card-content {
    display: flex;
    align-items: center;
    gap: 28px;
}

.category-wellness .category-card-content h3 {
    margin-bottom: 0;
}

.category-wellness .category-card-content p {
    margin-bottom: 0;
}


/* =====================================================
   FEATURED COMMUNITIES
===================================================== */

.featured-communities {
    padding: 110px 0;

    background: #ffffff;
}

.featured-community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.featured-community-card {
    overflow: hidden;

    background: var(--community-cream);

    border: 1px solid rgba(36, 16, 68, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-community-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 20px 45px rgba(36, 16, 68, 0.10);
}

.featured-community-image {
    position: relative;

    height: 245px;
}

.featured-community-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.community-status {
    position: absolute;
    top: 18px;
    left: 18px;

    padding: 7px 12px;

    background: #ffffff;
    color: var(--community-purple);

    font-size: 10px;
    font-weight: 700;
}

.featured-community-content {
    padding: 25px;
}

.featured-community-content h3 {
    margin: 0 0 12px;

    color: var(--community-text);

    font-size: 21px;
    font-weight: 600;
}

.featured-community-content > p {
    min-height: 60px;

    margin: 0 0 25px;

    color: var(--community-muted);

    font-size: 15px;
    line-height: 1.8;
}

.community-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 18px;

    border-top: 1px solid rgba(36, 16, 68, 0.10);
}

.community-card-footer span {
    color: var(--community-muted);

    font-size: 13px;
}

.community-card-footer span i {
    margin-right: 5px;

    color: var(--community-gold);
}

.community-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--community-purple);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.community-card-footer a i {
    font-size: 13px;
}


/* =====================================================
   COMMUNITY CTA
===================================================== */

.community-cta {
    position: relative;

    overflow: hidden;

    padding: 90px 0;

    background:
        radial-gradient(
            circle at 90% 40%,
            rgba(212, 166, 42, 0.15),
            transparent 32%
        ),
        linear-gradient(
            125deg,
            #241044,
            #32184e,
            #241044
        );

    color: #ffffff;
}

.community-cta-inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.community-cta-content {
    max-width: 650px;
}

.community-cta .community-eyebrow {
    color: var(--community-gold-light);
}

.community-cta .community-eyebrow span {
    background: var(--community-gold);
}

.community-cta h2 {
    margin: 0 0 25px;

    color: #ffffff;

    font-size: clamp(40px, 5vw, 65px);
    font-weight: 500;
    line-height: 1.08;
}

.community-cta h2 em {
    color: var(--community-gold-light);

    font-family: "Playfair Display", serif;
    font-weight: 400;
}

.community-cta-content > p {
    max-width: 490px;

    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 14px;
    line-height: 1.9;
}

.community-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;

    padding: 16px 22px;

    background: var(--community-gold-light);
    color: var(--community-purple);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.3s ease;
}

.community-cta-button:hover {
    background: #ffffff;

    transform: translateY(-3px);
}

.community-cta-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 260px;
    height: 260px;

    flex-shrink: 0;

    border: 1px solid rgba(229, 193, 119, 0.40);

    color: var(--community-gold-light);
}

.community-cta-icon i {
    margin-bottom: 22px;

    font-size: 60px;
}

.community-cta-icon span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 2;

    text-align: center;
}

.community-cta-decoration {
    position: absolute;

    top: -190px;
    right: -130px;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(229, 193, 119, 0.20);

    border-radius: 50%;
}


/* =====================================================
   RESPONSIVE — 1100px
===================================================== */

@media (max-width: 1100px) {

    .community-hero-grid {
        gap: 45px;
    }

    .community-hero-label {
        right: -5px;
    }

    .community-category-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: 260px 220px 220px;

        grid-template-areas:
            "featured featured"
            "professional creative"
            "wellness wellness";
    }

    .category-featured .category-card-content h3 {
        font-size: 35px;
    }

}


/* =====================================================
   RESPONSIVE — 900px
===================================================== */

@media (max-width: 900px) {

    .community-hero {
        padding: 60px 0 80px;
    }

    .community-hero-grid {
        grid-template-columns: 1fr;
    }

    .community-hero-content {
        max-width: 700px;
    }

    .community-hero-visual {
        min-height: 450px;
    }

    .community-main-image {
        width: 88%;
        height: 390px;
    }

    .community-section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }

    .community-section-heading > p {
        max-width: 500px;
    }

    .featured-community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =====================================================
   RESPONSIVE — 650px
===================================================== */

@media (max-width: 650px) {

    .community-hero {
        padding: 45px 0 65px;
    }

    .community-hero h1 {
        font-size: 46px;

        letter-spacing: -1px;
    }

    .community-hero-actions {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }

    .community-hero-visual {
        min-height: 360px;
    }

    .community-main-image {
        width: 90%;
        height: 300px;
    }

    .community-small-image {
        width: 45%;
        height: 150px;

        border-width: 6px;
    }

    .community-hero-label {
        right: 0;
        bottom: 35px;

        padding: 14px 16px;
    }

    .community-hero-decoration {
        right: -10px;

        width: 120px;
        height: 120px;
    }

    .community-intro,
    .community-categories,
    .featured-communities {
        padding: 70px 0;
    }

    .community-category-grid {
        grid-template-columns: 1fr;

        grid-template-rows: repeat(4, 270px);

        grid-template-areas:
            "featured"
            "professional"
            "creative"
            "wellness";
    }

    .category-featured .category-card-content h3 {
        font-size: 30px;
    }

    .category-card-content {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .category-wellness .category-card-content {
        display: block;
    }

    .category-wellness .category-card-content h3 {
        margin-bottom: 8px;
    }

    .featured-community-grid {
        grid-template-columns: 1fr;
    }

    .featured-community-image {
        height: 260px;
    }

    .community-cta {
        padding: 70px 0;
    }

    .community-cta h2 {
        font-size: 43px;
    }

    .community-cta-icon {
        width: 200px;
        height: 200px;
    }

    .community-cta-icon i {
        font-size: 45px;
    }

}


/* =====================================================
   RESPONSIVE — 420px
===================================================== */

@media (max-width: 420px) {

    .category-card-content h3,
    .category-featured .category-card-content h3 {
        font-size: 26px;
    }

    .category-card-content p {
        font-size: 10px;
    }

}