/*
 * WeAreAgbor Homepage Visual Layer
 * Keeps homepage-specific image/card styling separate from the global theme CSS.
 */

.weareagbor-homepage {
    --wa-teal: #008f7a;
    --wa-teal-dark: #006f60;
    --wa-gold: #ffc244;
    --wa-ink: #111111;
    --wa-muted: #68717a;
    --wa-soft: #f6f7f5;
}

/* Category cards */
.weareagbor-homepage .business-categories-section {
    padding: 100px 5% 115px;
}

.weareagbor-homepage .categories-grid {
    max-width: 1500px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.weareagbor-homepage .category-card {
    position: relative;
    min-height: 360px;
    padding: 28px 30px 30px;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background-color: #26332f;
    background-image: var(--category-image);
    background-size: cover;
    background-position: center;
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.weareagbor-homepage .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
    transition: transform .45s ease;
}

.weareagbor-homepage .category-card-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 5%, rgba(0,0,0,.16) 35%, rgba(0,0,0,.78) 100%);
}

.weareagbor-homepage .category-card:hover {
    color: #fff;
    background-color: #26332f;
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(0,0,0,.16);
}

.weareagbor-homepage .category-card:hover::before {
    transform: scale(1.05);
}

.weareagbor-homepage .category-card .category-icon {
    width: 52px;
    height: 52px;
    padding: 0;
    font-size: 30px;
    background: rgba(255,255,255,.9);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.weareagbor-homepage .category-card .category-content {
    position: relative;
    z-index: 2;
    margin-top: 35px;
}

.weareagbor-homepage .category-card .category-content h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: clamp(27px, 2.3vw, 35px);
    letter-spacing: -.8px;
}

.weareagbor-homepage .category-card .category-content p {
    color: rgba(255,255,255,.9);
    font-size: 17px;
}

.weareagbor-homepage .category-card-all {
    background-color: #087f70;
    background-image: var(--category-image);
}

/* Visual community hub */
.weareagbor-homepage .wa-hub {
    padding: 105px 0 115px;
    background: #f4fbf9;
}

.weareagbor-homepage .wa-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.weareagbor-homepage .wa-hub-item.wa-hub-card {
    position: relative;
    min-height: 430px;
    padding: 28px;
    margin: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background-color: #26332f;
    background-image: var(--hub-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.weareagbor-homepage .wa-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
    transition: transform .45s ease;
}

.weareagbor-homepage .wa-hub-card:hover::before {
    transform: scale(1.05);
}

.weareagbor-homepage .wa-hub-card-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.74));
}

.weareagbor-homepage .wa-hub-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #111;
    background: #ffc244;
    font-weight: 800;
    font-size: 14px;
}

.weareagbor-homepage .wa-hub-card-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.weareagbor-homepage .wa-hub-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 34px;
}

.weareagbor-homepage .wa-hub-card p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    line-height: 1.55;
}

/* Real business photos */
.weareagbor-homepage .wa-home-businesses {
    padding: 110px 0;
    background: #fff;
}

.weareagbor-homepage .wa-home-businesses .wa-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.weareagbor-homepage .wa-home-business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.weareagbor-homepage .wa-home-business-card {
    overflow: hidden;
    border: 1px solid #eceeea;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.weareagbor-homepage .wa-home-business-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0,0,0,.1);
}

.weareagbor-homepage .wa-home-business-image {
    display: block;
    height: 250px;
    overflow: hidden;
    background: #eef2ef;
}

.weareagbor-homepage .wa-home-business-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.weareagbor-homepage .wa-home-business-card:hover .wa-home-business-image img {
    transform: scale(1.04);
}

.weareagbor-homepage .wa-home-business-content {
    padding: 24px 25px 28px;
}

.weareagbor-homepage .wa-home-business-content > span {
    display: block;
    margin-bottom: 9px;
    color: var(--wa-teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weareagbor-homepage .wa-home-business-content h3 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
}

.weareagbor-homepage .wa-home-business-content h3 a {
    color: var(--wa-ink);
    text-decoration: none;
}

.weareagbor-homepage .wa-home-business-empty {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 26px;
    border-radius: 28px;
    background: var(--wa-soft);
}

.weareagbor-homepage .wa-home-business-empty-image {
    min-height: 330px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.weareagbor-homepage .wa-home-business-empty h3 {
    max-width: 560px;
    margin: 8px 0 25px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
}

/* Latest stories with stronger image treatment */
.weareagbor-homepage .wa-story-card > a img {
    height: 280px;
    object-fit: cover;
}

.weareagbor-homepage .wa-story-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.weareagbor-homepage .wa-story-placeholder {
    min-height: 390px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background-color: #26332f;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.weareagbor-homepage .wa-story-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.8));
}

.weareagbor-homepage .wa-story-placeholder span {
    margin-bottom: 9px;
    color: #ffc244;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.weareagbor-homepage .wa-story-placeholder h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 30px;
}

.weareagbor-homepage .wa-story-placeholder p {
    margin: 0;
    color: rgba(255,255,255,.9);
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .weareagbor-homepage .categories-grid,
    .weareagbor-homepage .wa-hub-grid,
    .weareagbor-homepage .wa-home-business-grid,
    .weareagbor-homepage .wa-story-placeholder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .weareagbor-homepage .business-categories-section,
    .weareagbor-homepage .wa-hub,
    .weareagbor-homepage .wa-home-businesses,
    .weareagbor-homepage .wa-stories {
        padding-top: 70px;
        padding-bottom: 75px;
    }

    .weareagbor-homepage .categories-grid,
    .weareagbor-homepage .wa-hub-grid,
    .weareagbor-homepage .wa-home-business-grid,
    .weareagbor-homepage .wa-story-placeholder-grid,
    .weareagbor-homepage .wa-home-business-empty {
        grid-template-columns: 1fr;
    }

    .weareagbor-homepage .category-card {
        min-height: 300px;
        border-radius: 22px;
    }

    .weareagbor-homepage .wa-hub-item.wa-hub-card {
        min-height: 350px;
        border-radius: 22px;
    }

    .weareagbor-homepage .wa-home-business-image {
        height: 230px;
    }

    .weareagbor-homepage .wa-home-business-empty-image {
        min-height: 240px;
    }

    .weareagbor-homepage .wa-story-placeholder {
        min-height: 320px;
    }
}
