﻿/* ========================================
   CÔNG TRÌNH NỘI THẤT PAGE - HOÀNG PHÚC
   Synced with front-page.php design
   ======================================== */

:root {
    /* Colors - Synced with front-page */
    --ct-primary: #c9a962;
    --ct-primary-dark: #b8963e;
    --ct-primary-light: #d4b872;
    --ct-dark: #0d0d0d;
    --ct-dark-soft: #1a1a1a;
    --ct-charcoal: #141414;
    --ct-light: #f8f6f3;
    --ct-white: #ffffff;
    --ct-cream: #faf8f5;
    --ct-gray: #6b6b6b;
    --ct-border: rgba(201, 169, 98, 0.2);
    --ct-shadow: rgba(0, 0, 0, 0.3);
    --ct-shadow-strong: rgba(0, 0, 0, 0.5);

    /* Typography - Synced with front-page */
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

.cong-trinh-page {
    font-family: var(--font-display);
    color: var(--ct-white);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--ct-dark) 0%, var(--ct-charcoal) 50%, var(--ct-dark) 100%);
}


/* ========== HERO SECTION ========== */
.ct-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
    overflow: hidden;
}

.ct-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1920&q=80') center/cover no-repeat;
    opacity: 0.3;
}

.ct-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.ct-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    color: var(--ct-white);
}

.ct-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ct-primary-light);
    margin-bottom: 1rem;
    position: relative;
}

.ct-eyebrow::before,
.ct-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--ct-primary-light);
}

.ct-eyebrow::before {
    right: calc(100% + 15px);
}

.ct-eyebrow::after {
    left: calc(100% + 15px);
}

.ct-hero__title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(180deg, #e8d5a3 0%, #c9a962 30%, #a67c00 60%, #c9a962 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
    filter: drop-shadow(0 4px 15px rgba(201, 169, 98, 0.5));
}

@keyframes ct-shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.ct-hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Breadcrumb */
.ct-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.ct-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ct-breadcrumb a:hover {
    color: var(--ct-primary);
}

.ct-breadcrumb-sep {
    color: var(--ct-primary);
    font-size: 10px;
}

.ct-breadcrumb>span:last-child {
    color: var(--ct-primary);
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.ct-btn--primary {
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-dark) 100%);
    color: var(--ct-dark);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.ct-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.ct-btn--outline {
    background: transparent;
    color: var(--ct-primary);
    border-color: var(--ct-primary);
}

.ct-btn--outline:hover {
    background: var(--ct-primary);
    color: var(--ct-white);
}

.ct-btn--white {
    background: var(--ct-white);
    color: var(--ct-dark);
}

.ct-btn--white:hover {
    background: var(--ct-light);
    transform: translateY(-2px);
}

/* ========== STATS SECTION ========== */
.ct-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: var(--ct-dark-soft);
    border: 1px solid var(--ct-border);
    box-shadow: 0 -20px 60px var(--ct-shadow);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 20px;
    overflow: hidden;
}

.ct-stats__item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-right: 1px solid var(--ct-border);
    transition: background 0.3s ease;
}

.ct-stats__item:last-child {
    border-right: none;
}

.ct-stats__item:hover {
    background: rgba(201, 169, 98, 0.1);
}

.ct-stats__number {
    display: block;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--ct-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.ct-stats__label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

/* ========== SECTION HEADER ========== */
.ct-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.ct-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    color: var(--ct-white);
    font-family: var(--font-display);
}

.ct-section-header h2 em {
    font-style: italic;
    color: var(--ct-primary);
}

.ct-section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}

/* ========== PROJECTS SECTION ========== */
.ct-projects {
    padding: 6rem 5%;
    background: var(--ct-charcoal);
}

.ct-projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
}

/* ========== PROJECT CARD ========== */
.ct-project-card {
    background: var(--ct-dark-soft);
    border: 1px solid var(--ct-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--ct-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ct-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--ct-shadow-strong);
    border-color: var(--ct-primary);
}

.ct-project-card__image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.ct-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ct-project-card:hover .ct-project-card__image img {
    transform: scale(1.08);
}

.ct-project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.ct-project-card__category {
    background: var(--ct-primary);
    color: var(--ct-white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-project-card__content {
    padding: 2rem;
}

.ct-project-card__title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ct-white);
    font-family: var(--font-display);
}

.ct-project-card__info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
}

.ct-project-card__info strong {
    color: var(--ct-primary);
}

.ct-project-card__desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-family: var(--font-body);
}

.ct-project-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ct-tag {
    background: rgba(201, 169, 98, 0.15);
    color: var(--ct-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--ct-border);
    font-family: var(--font-body);
}

/* ========== PROCESS SECTION ========== */
.ct-process {
    padding: 6rem 5%;
    background: var(--ct-dark-soft);
}

.ct-process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.ct-process__step {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.ct-process__step:hover {
    background: rgba(201, 169, 98, 0.1);
    transform: translateY(-5px);
    border-color: var(--ct-border);
}

.ct-process__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--ct-primary) 0%, var(--ct-primary-dark) 100%);
    color: var(--ct-dark);
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
    font-family: var(--font-display);
}

.ct-process__step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--ct-white);
    font-family: var(--font-display);
}

.ct-process__step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-family: var(--font-body);
}


/* ========== CTA SECTION ========== */
.ct-cta {
    background: linear-gradient(135deg, var(--ct-dark) 0%, var(--ct-dark-soft) 100%);
    padding: 5rem 5%;
    text-align: center;
}

.ct-cta__content {
    max-width: 700px;
    margin: 0 auto;
}

.ct-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--ct-white);
    margin-bottom: 1rem;
}

.ct-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ct-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ct-hero {
        min-height: 70vh;
    }

    .ct-stats {
        margin-top: -40px;
        margin-left: 1rem;
        margin-right: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .ct-stats__item {
        padding: 1.5rem 1rem;
    }

    .ct-stats__item:nth-child(2) {
        border-right: none;
    }

    .ct-stats__item:nth-child(1),
    .ct-stats__item:nth-child(2) {
        border-bottom: 1px solid var(--ct-border);
    }

    .ct-stats__number {
        font-size: 2rem;
    }

    .ct-projects__grid {
        grid-template-columns: 1fr;
    }

    .ct-project-card__image {
        height: 240px;
    }

    .ct-project-card__info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ct-eyebrow::before,
    .ct-eyebrow::after {
        display: none;
    }

    .ct-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .ct-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .ct-hero__content {
        padding: 1.5rem;
    }

    .ct-projects,
    .ct-process,
    .ct-cta {
        padding: 4rem 1rem;
    }

    .ct-process__grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CROSS NAVIGATION ========== */
.ct-cross-nav {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--ct-dark-soft) 0%, var(--ct-dark) 100%);
    text-align: center;
    border-top: 1px solid var(--ct-border);
}

.ct-cross-nav__content {
    max-width: 600px;
    margin: 0 auto;
}

.ct-cross-nav__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
}

.ct-cross-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ct-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--ct-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.ct-cross-nav__link:hover {
    background: var(--ct-primary);
    color: var(--ct-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.ct-cross-nav__link span {
    transition: transform 0.3s ease;
}

.ct-cross-nav__link:hover span {
    transform: translateX(5px);
}

/* ========== MODAL STYLES ========== */
.ct-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ct-modal.active {
    opacity: 1;
    visibility: visible;
}

.ct-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.ct-modal__container {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--ct-white);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.ct-modal.active .ct-modal__container {
    transform: scale(1) translateY(0);
}

.ct-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ct-modal__close:hover {
    background: var(--ct-primary);
    transform: rotate(90deg);
}

.ct-modal__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-height: 90vh;
    overflow: hidden;
}

/* Gallery */
.ct-modal__gallery {
    background: var(--ct-dark);
}

.ct-modal__main-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.ct-modal__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ct-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ct-modal__nav:hover {
    background: var(--ct-primary);
    color: white;
}

.ct-modal__nav--prev {
    left: 15px;
}

.ct-modal__nav--next {
    right: 15px;
}

.ct-modal__thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--ct-dark-soft);
    overflow-x: auto;
}

.ct-modal__thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.ct-modal__thumbnails img:hover,
.ct-modal__thumbnails img.active {
    opacity: 1;
    border-color: var(--ct-primary);
}

/* Info Section */
.ct-modal__info {
    padding: 2rem;
    overflow-y: auto;
    max-height: 90vh;
}

.ct-modal__category {
    display: inline-block;
    background: var(--ct-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.ct-modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ct-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ct-modal__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--ct-light);
    border-radius: 12px;
}

.ct-modal__spec {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ct-modal__spec-label {
    font-size: 0.85rem;
    color: var(--ct-gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ct-modal__spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ct-dark);
}

.ct-modal__description h3,
.ct-modal__features h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ct-dark);
    margin-bottom: 0.75rem;
}

.ct-modal__description p {
    color: var(--ct-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ct-modal__features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ct-modal__actions {
    padding-top: 1rem;
    border-top: 1px solid var(--ct-border);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .ct-modal__content {
        grid-template-columns: 1fr;
    }

    .ct-modal__main-image {
        height: 300px;
    }

    .ct-modal__info {
        max-height: 50vh;
    }
}

@media (max-width: 540px) {
    .ct-modal__container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .ct-modal__main-image {
        height: 250px;
    }

    .ct-modal__info {
        padding: 1.5rem;
    }

    .ct-modal__specs {
        grid-template-columns: 1fr;
    }

    .ct-modal__title {
        font-size: 1.4rem;
    }
}