/**
 * Gifts Cooperative Society — Arabic Home v2 decorative system.
 * Every selector is scoped to an explicit .gcs-* class assigned in Elementor.
 * No html/body selectors, no global container rules, no fixed positioning,
 * no global height/scroll rules, and no !important overrides.
 */

.gcs-home-v2-section {
    --gcs-green: #193E34;
    --gcs-green-deep: #0B2A22;
    --gcs-green-soft: #234E45;
    --gcs-gold: #B68F4F;
    --gcs-gold-soft: #D8BD7D;
    --gcs-ivory: #F3F0E8;
    --gcs-warm-white: #FBFAF7;
    --gcs-sand: #E8DFD0;
    position: relative;
    isolation: isolate;
}

.gcs-home-v2-section::before,
.gcs-home-v2-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    background-repeat: no-repeat;
}

/* Hero: original identity strip + emblem watermark */
.gcs-home-hero::before {
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(216,189,125,.16), transparent 27%),
        radial-gradient(circle at 84% 76%, rgba(243,240,232,.07), transparent 30%),
        url("../identity/ornament-strip-gold.png");
    background-position: center, center, left center;
    background-size: auto, auto, 54px auto;
    opacity: .92;
}

.gcs-home-hero::after {
    inset-inline-end: -80px;
    bottom: -90px;
    width: 430px;
    height: 390px;
    background-image: url("../identity/ornament-symbol-gold.png");
    background-position: center;
    background-size: contain;
    opacity: .055;
}

.gcs-hero-visual {
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease;
}

.gcs-hero-visual::before {
    content: "";
    position: absolute;
    inset: 17px;
    border: 1px solid rgba(182,143,79,.36);
    border-radius: 27px;
    pointer-events: none;
}

.gcs-hero-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(3,20,15,.25);
}

.gcs-stat-strip {
    position: relative;
}

.gcs-stat-strip::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216,189,125,.65), transparent);
    pointer-events: none;
}

.gcs-stat-item {
    position: relative;
}

.gcs-stat-item + .gcs-stat-item::before {
    content: "";
    position: absolute;
    inset-inline-start: -5px;
    top: 18%;
    width: 1px;
    height: 64%;
    background: rgba(216,189,125,.18);
    pointer-events: none;
}

/* Alternating section identity watermarks */
.gcs-section-ivory::before {
    inset-inline-start: -110px;
    top: 10%;
    width: 430px;
    height: 380px;
    background-image: url("../identity/ornament-symbol-green.png");
    background-position: center;
    background-size: contain;
    opacity: .035;
}

.gcs-section-ivory::after {
    inset-inline-end: 20px;
    bottom: 24px;
    width: 64px;
    height: 240px;
    background-image: url("../identity/ornament-strip-soft.png");
    background-position: center;
    background-size: contain;
    opacity: .36;
}

.gcs-section-green::before,
.gcs-home-cta::before {
    inset-inline-end: -90px;
    bottom: -90px;
    width: 410px;
    height: 370px;
    background-image: url("../identity/ornament-symbol-gold.png");
    background-position: center;
    background-size: contain;
    opacity: .055;
}

.gcs-section-green::after {
    inset-inline-start: 18px;
    top: 40px;
    width: 54px;
    height: 300px;
    background-image: url("../identity/ornament-strip-gold.png");
    background-position: center;
    background-size: contain;
    opacity: .28;
}

/* Reusable image framing */
.gcs-brand-frame,
.gcs-about-visual,
.gcs-partners-panel {
    position: relative;
}

.gcs-brand-frame::after,
.gcs-about-visual::after {
    content: "";
    position: absolute;
    inset: 14px -12px -12px 14px;
    border: 1px solid rgba(182,143,79,.52);
    border-radius: 30px;
    pointer-events: none;
    z-index: -1;
}

.gcs-gold-heading-line {
    position: relative;
}

.gcs-gold-heading-line::after {
    content: "";
    display: block;
    width: 82px;
    height: 2px;
    margin-top: 13px;
    margin-inline-start: auto;
    background: linear-gradient(90deg, transparent, var(--gcs-gold) 24%, var(--gcs-gold-soft) 74%, transparent);
}

/* Services */
.gcs-services-grid {
    position: relative;
}

.gcs-service-card,
.gcs-product-card,
.gcs-craft-card,
.gcs-client-card,
.gcs-philosophy-step {
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.gcs-service-card::before,
.gcs-product-card::before,
.gcs-client-card::before,
.gcs-philosophy-step::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 24px;
    width: 58px;
    height: 3px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(90deg, var(--gcs-gold), var(--gcs-gold-soft));
    pointer-events: none;
}

.gcs-service-card-featured::after {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    bottom: 18px;
    width: 84px;
    height: 74px;
    background: url("../identity/gcs-emblem.png") center / contain no-repeat;
    opacity: .055;
    pointer-events: none;
}

.gcs-service-card:hover,
.gcs-product-card:hover,
.gcs-craft-card:hover,
.gcs-client-card:hover,
.gcs-philosophy-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(7,34,27,.14);
    border-color: rgba(182,143,79,.48);
}

/* Gift philosophy: subtle connecting rhythm on large screens */
.gcs-philosophy-grid {
    position: relative;
}

.gcs-philosophy-grid::before {
    content: "";
    position: absolute;
    top: 63px;
    inset-inline: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(182,143,79,.34) 15%, rgba(182,143,79,.34) 85%, transparent);
    pointer-events: none;
}

.gcs-philosophy-step {
    z-index: 1;
}

/* Product editorial grid */
.gcs-product-card-featured::after {
    content: "مختارة";
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(25,62,52,.92);
    color: var(--gcs-ivory);
    font-family: "Saudi Regular", sans-serif;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}

/* Crafts */
.gcs-craft-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(216,189,125,.26);
    border-radius: 25px;
    pointer-events: none;
}

/* Partners and client sectors */
.gcs-partners-panel::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(216,189,125,.20);
    border-radius: 26px;
    pointer-events: none;
}

.gcs-client-card::after {
    content: "";
    position: absolute;
    inset-inline-end: 15px;
    bottom: 11px;
    width: 26px;
    height: 20px;
    background: url("../identity/gcs-emblem.png") center / contain no-repeat;
    opacity: .045;
    pointer-events: none;
}

/* Dynamic news stays compact even before posts exist */
.gcs-news-grid:empty {
    display: none;
}

.gcs-news-grid .elementor-post,
.gcs-news-grid .elementor-grid-item {
    transition: transform .24s ease, box-shadow .24s ease;
}

.gcs-news-grid .elementor-post:hover,
.gcs-news-grid .elementor-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(7,34,27,.12);
}

/* Final CTA */
.gcs-home-cta::after {
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(11,42,34,.18), transparent 45%),
        url("../identity/ornament-strip-gold.png");
    background-position: center, left center;
    background-size: auto, 48px auto;
    opacity: .34;
}

.gcs-cta-card {
    position: relative;
    box-shadow: 0 30px 75px rgba(0,0,0,.20);
}

.gcs-cta-card::after {
    content: "";
    position: absolute;
    inset-inline-end: 4%;
    bottom: -45px;
    width: 245px;
    height: 215px;
    background: url("../identity/ornament-symbol-gold.png") center / contain no-repeat;
    opacity: .05;
    pointer-events: none;
}

.gcs-svg-icon img {
    display: block;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .gcs-home-hero::before {
        background-size: auto, auto, 42px auto;
    }

    .gcs-philosophy-grid::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .gcs-home-hero::before {
        background-size: auto, auto, 30px auto;
        opacity: .7;
    }

    .gcs-home-hero::after,
    .gcs-section-ivory::before,
    .gcs-section-green::before,
    .gcs-home-cta::before {
        width: 250px;
        height: 230px;
        opacity: .035;
    }

    .gcs-section-ivory::after,
    .gcs-section-green::after {
        display: none;
    }

    .gcs-brand-frame::after,
    .gcs-about-visual::after {
        inset: 9px -7px -7px 9px;
        border-radius: 22px;
    }

    .gcs-stat-item + .gcs-stat-item::before {
        display: none;
    }

    .gcs-product-card-featured::after {
        top: 17px;
        inset-inline-end: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gcs-hero-visual,
    .gcs-service-card,
    .gcs-product-card,
    .gcs-craft-card,
    .gcs-client-card,
    .gcs-philosophy-step,
    .gcs-news-grid .elementor-post,
    .gcs-news-grid .elementor-grid-item {
        transition: none;
    }
}


/* =========================================================
   Materials + Saudi Plants replacement section — v2.1
   Scoped only to explicit .gcs-nature-* classes.
   ========================================================= */

.gcs-nature-section {
    position: relative;
    isolation: isolate;
    background-image:
        radial-gradient(circle at 16% 18%, rgba(216, 189, 125, .11), transparent 28%),
        linear-gradient(135deg, #173f35 0%, #0e3028 58%, #0a271f 100%);
}

.gcs-nature-section::before {
    content: "";
    position: absolute;
    inset-inline-end: -88px;
    bottom: -98px;
    width: 430px;
    height: 390px;
    background: url("../identity/ornament-symbol-gold.png") center / contain no-repeat;
    opacity: .052;
    pointer-events: none;
    z-index: -1;
}

.gcs-nature-section::after {
    content: "";
    position: absolute;
    inset-inline-start: 18px;
    top: 56px;
    width: 47px;
    height: 280px;
    background: url("../identity/ornament-strip-gold.png") center / contain no-repeat;
    opacity: .24;
    pointer-events: none;
    z-index: -1;
}

.gcs-nature-tabs {
    position: relative;
}

.gcs-nature-tabs::before {
    content: "";
    position: absolute;
    top: -10px;
    inset-inline: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 189, 125, .30), transparent);
    pointer-events: none;
}

.gcs-nature-tab-content {
    position: relative;
}

.gcs-nature-grid {
    position: relative;
}

.gcs-nature-card {
    position: relative;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.gcs-nature-card::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 24px;
    width: 54px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #B68F4F, #D8BD7D);
    pointer-events: none;
}

.gcs-nature-card::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(216, 189, 125, .15);
    border-radius: 23px;
    pointer-events: none;
}

.gcs-nature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 189, 125, .52);
    box-shadow: 0 24px 52px rgba(2, 19, 14, .24);
    background-color: rgba(243, 240, 232, .085);
}

.gcs-nature-card .elementor-widget-image img {
    transition: transform .35s ease, filter .35s ease;
}

.gcs-nature-card:hover .elementor-widget-image img {
    transform: scale(1.035);
    filter: saturate(1.03) contrast(1.02);
}

.gcs-nature-card-plant::after {
    border-color: rgba(182, 143, 79, .20);
}

.gcs-nature-card-index {
    opacity: .48;
}

@media (max-width: 1024px) {
    .gcs-nature-section::after {
        opacity: .18;
    }
}

@media (max-width: 767px) {
    .gcs-nature-section::before {
        width: 250px;
        height: 230px;
        opacity: .035;
    }

    .gcs-nature-section::after,
    .gcs-nature-tabs::before {
        display: none;
    }

    .gcs-nature-card::before {
        inset-inline-start: 18px;
        width: 42px;
    }

    .gcs-nature-card::after {
        inset: 7px;
        border-radius: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gcs-nature-card,
    .gcs-nature-card .elementor-widget-image img {
        transition: none;
    }
}
