/* =============================================
   Construction Project Showcase - Premium Styles
   Brand Color: #C60B18
   ============================================= */

:root {
    --cps-primary: #C60B18;
    --cps-primary-dark: #9a0912;
    --cps-dark: #1a1a1a;
    --cps-text: #444;
    --cps-light: #f8f8f8;
    --cps-white: #ffffff;
    --cps-radius: 6px;
    --cps-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --cps-max-width: 1200px;
}

/* Reset for wrapper */
.cps-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.7;
    color: var(--cps-text);
}

.cps-wrapper *,
.cps-wrapper *::before,
.cps-wrapper *::after {
    box-sizing: border-box;
}

.cps-container {
    width: 100%;
    max-width: var(--cps-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.cps-section {
    padding: 90px 0;
}

/* ========== 1. HERO ========== */
.cps-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cps-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.cps-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.cps-hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    color: var(--cps-white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 20px 0 15px;
    line-height: 1.2;
}

.cps-hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.cps-hero-separator {
    width: 80px;
    height: 3px;
    background: var(--cps-primary);
    margin: 0 auto;
}

/* Hero animation */
.cps-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: cpsHeroFade 1.2s ease forwards 0.3s;
}

@keyframes cpsHeroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 2. INFO SECTION ========== */
.cps-info-section {
    background: var(--cps-white);
}

.cps-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cps-section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cps-primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 45px;
}

.cps-section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 2px;
    background: var(--cps-primary);
}

.cps-section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--cps-dark);
    margin: 0 0 25px;
    line-height: 1.3;
}

.cps-description {
    font-size: 16px;
    line-height: 1.9;
    color: #666;
}

.cps-description p {
    margin-bottom: 15px;
}

/* Info Card */
.cps-info-card {
    background: var(--cps-light);
    border-radius: var(--cps-radius);
    padding: 40px;
    box-shadow: var(--cps-shadow);
    border-left: 4px solid var(--cps-primary);
}

.cps-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--cps-dark);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.cps-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.cps-card-row:last-child {
    border-bottom: none;
}

.cps-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cps-card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--cps-dark);
}

/* ========== 3. GALLERY ========== */
.cps-gallery-section {
    background: var(--cps-light);
}

.cps-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.cps-gallery-item {
    position: relative;
    border-radius: var(--cps-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #ddd;
}

.cps-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cps-gallery-item:hover img {
    transform: scale(1.08);
}

.cps-gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(198, 11, 24, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cps-gallery-item:hover .cps-gallery-hover {
    opacity: 1;
}

.cps-gallery-icon {
    font-size: 32px;
    color: #fff;
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

.cps-gallery-item:hover .cps-gallery-icon {
    transform: scale(1);
}

/* ========== 4. LOCATION ========== */
.cps-location-section {
    background: var(--cps-white);
    padding: 70px 0;
}

.cps-location-section .cps-section-tag {
    text-align: center;
    display: block;
}

.cps-location-section .cps-section-tag::before {
    display: none;
}

.cps-location-section .cps-section-title {
    text-align: center;
    font-size: 28px;
}

/* ========== 5. CTA ========== */
.cps-cta-section {
    background: var(--cps-dark);
    padding: 80px 0;
}

.cps-cta-title {
    color: var(--cps-white);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    margin: 0 0 35px;
}

.cps-cta-button {
    display: inline-block;
    background: var(--cps-primary);
    color: var(--cps-white) !important;
    padding: 16px 45px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(198, 11, 24, 0.3);
}

.cps-cta-button:hover {
    background: var(--cps-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(198, 11, 24, 0.4);
}

/* ========== LIGHTBOX ========== */
.cps-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cps-lightbox.active {
    display: flex;
    opacity: 1;
}

.cps-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.cps-lightbox.active .cps-lightbox-img {
    transform: scale(1);
}

.cps-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.cps-lightbox-close:hover {
    color: var(--cps-primary);
}

.cps-lightbox-prev,
.cps-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    user-select: none;
    transition: color 0.2s;
}

.cps-lightbox-prev {
    left: 20px;
}

.cps-lightbox-next {
    right: 20px;
}

.cps-lightbox-prev:hover,
.cps-lightbox-next:hover {
    color: var(--cps-primary);
}

.cps-lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 3px;
}

/* ========== FADE-IN ANIMATION ========== */
.cps-fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cps-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .cps-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cps-hero {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .cps-hero {
        height: 50vh;
        min-height: 350px;
    }

    .cps-section {
        padding: 60px 0;
    }

    .cps-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cps-info-card {
        padding: 25px;
    }

    .cps-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cps-container {
        padding: 0 20px;
    }
}