/* ============================================================
   Cases 页面
   Source: main.css lines 5421-5648
   ============================================================ */

/* ============================================================
   CASES PAGE — Construction Cases
   ============================================================ */

/* ----- Hero ----- */
.cases-hero {
    position: relative;
    width: 100%;
    height: 504px; /* 360px design + 144px navbar */
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding: 0; /* override global section { padding: 72px 0 } */
    background: #1a1a1a;
}
.cases-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cases-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.cases-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,42,.80) 0%, rgba(13,27,42,.55) 100%); /* design: dark blue-grey overlay */
}
.cases-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--navbar-h) + 40px) 80px 78px 240px; /* unified: all inner-page heroes use +40px top offset */
}
.cases-hero__eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    color: #8ab73a;
    text-transform: none; /* design: mixed-case */
    margin: 0 0 12px;
}
.cases-hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 8px;
}
.cases-hero__title--green {
    color: #8ab73a;
}
.cases-hero__subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin: 0 0 28px;
}
.cases-hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.cases-hero__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}
.cases-hero__stat-icon {
    font-size: 10px;
    color: #8ab73a;
}

/* ----- Cases Grid ----- */
.cases-grid-section {
    background: #fff;
    padding: 64px 0;
}
.cases-grid-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 240px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cases-grid__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.cases-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.cases-grid__item:hover .cases-grid__img {
    transform: scale(1.04);
}
.cases-grid__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
}
.cases-grid__name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cases-grid__location {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    margin: 0;
}

/* ----- CTA ----- */
.cases-cta {
    background: #0d1b2a;
    padding: 80px 0;
}
.cases-cta__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}
.cases-cta__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
}
.cases-cta__subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.65);
    margin: 0 0 36px;
    line-height: 1.6;
}
.cases-cta__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cases-cta__btns .btn--green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    background: var(--color-accent, #4caf50);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.cases-cta__btns .btn--green:hover {
    opacity: .85;
}
.cases-cta__btns .btn--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.cases-cta__btns .btn--whatsapp:hover {
    opacity: .85;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .cases-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 120px;
    }
    .cases-hero__inner {
        padding: 48px 120px 40px;
    }
    .cases-hero__title {
        font-size: 36px;
    }
}
@media (max-width: 768px) {
    .cases-grid-wrap {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .cases-hero {
        height: auto;
        min-height: 504px;
        overflow: visible;
    }
    .cases-hero__inner {
        padding: calc(var(--navbar-h) + 24px) 20px 40px 20px;
    }
    .cases-hero__title {
        font-size: 28px;
    }
    .cases-hero__stats {
        gap: 16px;
    }
}


/* ============================================================
   Cases Page v2 Mobile
   Source: main.css lines 6639-6885
   ============================================================ */

/* ============================================================
   Cases Page v2 - UIPro mobile design
   ============================================================ */

/* Hero */
.cases-hero-v2 {
    background-image: url('../images/Head@3x.png');
    background-size: cover;
    background-position: center top;
    /* height/display/grid controlled by .inner-page-hero */
    position: relative;
    overflow: hidden;
}
.cases-hero-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6,32,59,.65) 0%, rgba(6,32,59,.82) 100%);
    z-index: 0;
}
.cases-hero-v2__inner {
    /* padding/width/grid-row controlled by .inner-page-hero__inner */
    position: relative;
    z-index: 1;
}
.cases-hero-v2__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.6);
}
.cases-hero-v2__breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.cases-hero-v2__breadcrumb a:hover { color: #fff; }
.cases-hero-v2__breadcrumb-current {
    color: var(--color-accent);
    background: rgba(255,255,255,.08);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 500;
}
.cases-hero-v2__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.cases-hero-v2__eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}
.cases-hero-v2__title {
    font-size: clamp(26px, 6vw, 44px);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1.15;
    margin: 0 0 8px;
}
.cases-hero-v2__title-white { color: #fff; }
.cases-hero-v2__subtitle { font-size: 14px; color: rgba(255,255,255,.65); margin: 0 0 24px; }
.cases-hero-v2__stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.cases-hero-v2__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.cases-hero-v2__stat img { border-radius: 10px; transform: rotate(-180deg); }

/* Project Cards Grid */
.cases-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 16px;
    background: #fff;
}
.case-card {
    border-radius: 12px;
    height: 208px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform .25s;
    cursor: pointer;
}
.case-card:hover { transform: scale(1.01); }
.case-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.case-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    width: 100%;
}
.case-card__info { flex: 1; min-width: 0; }
.case-card__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.case-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.case-card__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #d9d9d9;
    flex-shrink: 0;
}
.case-card__year {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}
.case-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,.7);
}
.case-card__arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s;
}
.case-card__arrow:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* Desktop grid */
@media (min-width: 768px) {
    .cases-cards {
        grid-template-columns: 1fr 1fr;
        padding: 40px 24px;
    }
    .case-card { height: 240px; }
}
@media (min-width: 1100px) {
    .cases-cards {
        grid-template-columns: repeat(3, 1fr);
        padding: 80px 240px 0;
    }
}

