/**
 * Module Styles: Project (Grid, Cards, and Single Project Details)
 * Loaded conditionally on:
 * - Single Project (single-project.php)
 * - Archive Project (archive-project.php)
 * - Pages using [project_list]
 */

/* ==========================================================================
   1. PROJECT GRID & CARDS
   ========================================================================== */
.ltc-project-grid-section {
    width: 100%;
    padding: 30px 0 50px;
    box-sizing: border-box;
}

.ltc-project-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ltc-project-grid-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    text-transform: uppercase;
    margin: 0 !important;
}

.ltc-project-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ltc-primary, #006039);
    text-decoration: none !important;
    transition: transform 0.25s ease;
}

.ltc-project-view-all:hover {
    transform: translateX(4px);
}

.ltc-project-grid {
    display: grid;
    gap: 22px;
}

.ltc-project-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ltc-project-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ltc-project-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ltc-project-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ltc-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 96, 57, 0.12);
    border-color: #bee3d0;
}

.ltc-project-thumb {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background-color: #e5ece8;
}

.ltc-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ltc-project-card:hover .ltc-project-thumb img {
    transform: scale(1.08);
}

.ltc-project-body {
    padding: 16px 18px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ltc-project-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0 !important;
    line-height: 1.35;
    padding-right: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ltc-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ltc-text-muted, #6b7280);
    margin-top: auto;
}

.ltc-project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ltc-project-separator {
    color: #cbd5e1;
}

.ltc-project-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ltc-primary, #006039);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.ltc-project-card:hover .ltc-project-arrow {
    transform: scale(1.12);
    background-color: var(--ltc-primary-dark, #004d2e);
}


/* ==========================================================================
   2. SINGLE PROJECT DETAIL PAGE (.project-single-wrapper)
   ========================================================================== */
.project-single-wrapper {
    background-color: #fbfdfc;
    padding: 40px 0 80px;
    color: var(--ltc-text, #374151);
    font-family: inherit;
}

.project-single-wrapper * {
    box-sizing: border-box;
}

.project-single-wrapper .project-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Two Column Grid */
.project-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.project-col-left {
    min-width: 0;
}

.project-col-right {
    min-width: 0;
}

.project-info-card,
.project-quote-card {
    width: 100%;
    box-sizing: border-box;
}

/* Left Column: Gallery & Slider */
.project-gallery-box {
    margin-bottom: 30px;
}

.project-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background-color: #e5ece8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.project-slide-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(11, 46, 31, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Thumbs Carousel */
.project-thumbs-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    position: relative;
}

.project-thumb-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    padding: 0;
}

.project-thumb-nav:hover {
    background: var(--ltc-primary, #006039);
    color: #ffffff;
    transform: scale(1.06);
}

.project-thumbs-track-wrap {
    overflow: hidden;
    flex-grow: 1;
}

.project-thumbs-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
}

.project-thumbs-track::-webkit-scrollbar {
    display: none;
}

.project-thumb-item {
    width: 105px;
    height: 70px;
    min-width: 105px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: 0.72;
    transition: all 0.25s ease;
    background-color: #e5ece8;
}

.project-thumb-item:hover {
    opacity: 1;
}

.project-thumb-item.active {
    border-color: var(--ltc-primary, #006039);
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 96, 57, 0.2);
}

.project-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tabs Section */
.project-tabs-wrapper {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #edf3ef;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.project-tabs-header::-webkit-scrollbar {
    display: none;
}

.project-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.project-tab-btn:hover {
    color: var(--ltc-primary, #006039);
    background: #f0f7f3;
}

.project-tab-btn.active {
    color: var(--ltc-primary, #006039);
    background: var(--ltc-primary-light, #e6f3ec);
}

.project-tab-btn svg {
    stroke: currentColor;
}

.project-tabs-content {
    padding-top: 24px;
}

.project-tab-pane {
    display: none;
}

.project-tab-pane.active {
    display: block;
    animation: ltcFadeIn 0.3s ease;
}

@keyframes ltcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-pane-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-primary, #006039);
    text-transform: uppercase;
    margin: 0 0 16px !important;
}

.project-pane-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.project-pane-desc p {
    margin-bottom: 14px;
}

/* Highlights Grid */
.project-highlights-box {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #d1e3d9;
}

.project-highlights-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 18px !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-highlights-title .highlight-bar {
    color: var(--ltc-primary, #006039);
    font-weight: 900;
}

.project-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.project-highlight-item {
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 8px;
    background: #fbfdfc;
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 96, 57, 0.08);
    border-color: #bee3d0;
}

.project-highlight-item .highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.project-highlight-item .highlight-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

/* Right Column: Project Info Card */
.project-info-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-info-header {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ltc-primary, #006039);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf3ef;
}

.project-info-list {
    display: flex;
    flex-direction: column;
}

.project-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f3;
    font-size: 14px;
}

.project-info-row:last-child {
    border-bottom: none;
}

.project-info-row .info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: var(--ltc-primary-light, #e6f3ec);
    color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info-row .info-label {
    width: 125px;
    min-width: 125px;
    color: var(--ltc-text-muted, #6b7280);
    font-size: 13.5px;
}

.project-info-row .info-value {
    color: #111827;
    font-weight: 600;
    line-height: 1.45;
    flex-grow: 1;
}

.project-info-cta {
    margin-top: 22px;
}

.project-btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    background-color: var(--ltc-primary, #006039);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 96, 57, 0.28);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.project-btn-consult:hover {
    background-color: var(--ltc-primary-dark, #004d2e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 96, 57, 0.35);
}

/* Right Column: Quote Card */
.project-quote-card {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.project-quote-symbol {
    font-size: 48px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--ltc-primary, #006039);
    font-weight: bold;
    margin-bottom: 6px;
}

.project-quote-text {
    font-size: 14.5px;
    font-style: italic;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.65;
    margin-bottom: 12px;
}

.project-quote-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--ltc-text-muted, #6b7280);
    margin-bottom: 18px;
}

.project-quote-photo {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5ece8;
}

.project-quote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Actual Images Section */
.project-actual-section {
    margin-top: 50px;
}

.project-actual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.project-actual-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    text-transform: uppercase;
    margin: 0 !important;
}

.project-actual-navs {
    display: flex;
    gap: 8px;
}

.actual-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 0;
}

.actual-nav:hover {
    background: var(--ltc-primary, #006039);
    color: #ffffff;
}

.project-actual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.actual-img-card {
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #e5ece8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.actual-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.actual-img-card:hover img {
    transform: scale(1.08);
}

/* CTA Banner */
.project-cta-banner {
    margin-top: 55px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf6ef 0%, #d5eedf 60%, #c4e7d4 100%);
    padding: 38px 44px;
    position: relative;
    overflow: hidden;
    border: 1px solid #cce3d5;
}

.project-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.project-cta-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ltc-primary, #006039);
    margin-bottom: 6px;
}

.project-cta-headline {
    font-size: 24px;
    font-weight: 800;
    color: #0b3020;
    line-height: 1.35;
    margin: 0 0 10px !important;
}

.project-cta-desc {
    font-size: 14.5px;
    color: #2d3748;
    margin: 0 !important;
}

.project-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-cta-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--ltc-primary, #006039);
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 96, 57, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-cta-submit:hover {
    background-color: var(--ltc-primary-dark, #004d2e);
    transform: translateY(-2px);
}

.btn-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--ltc-primary, #006039) !important;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid var(--ltc-primary, #006039);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta-phone:hover {
    background-color: var(--ltc-primary, #006039);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Related Projects Section */
.project-related-section {
    margin-top: 55px;
}

.project-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.project-related-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    text-transform: uppercase;
    margin: 0 !important;
}

.project-related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ltc-primary, #006039);
    text-decoration: none !important;
    transition: transform 0.25s ease;
}

.project-related-view-all:hover {
    transform: translateX(4px);
}

.project-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.project-related-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 96, 57, 0.12);
    border-color: #bee3d0;
}

.rel-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e5ece8;
}

.rel-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-related-card:hover .rel-card-thumb img {
    transform: scale(1.08);
}

.rel-card-body {
    padding: 16px 18px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rel-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px !important;
    line-height: 1.35;
    padding-right: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ltc-text-muted, #6b7280);
    margin-top: auto;
}

.rel-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rel-meta-separator {
    color: #cbd5e1;
}

.rel-card-btn-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ltc-primary, #006039);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.project-related-card:hover .rel-card-btn-arrow {
    transform: scale(1.12);
    background-color: var(--ltc-primary-dark, #004d2e);
}

/* Responsive */
@media (max-width: 1200px) {
    .project-main-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 24px;
    }
    .project-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .project-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .project-actual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .project-single-wrapper {
        padding: 24px 0 50px;
    }
    .project-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-actual-grid {
        grid-template-columns: 1fr;
    }
    .project-related-grid {
        grid-template-columns: 1fr;
    }
    .project-cta-banner {
        padding: 28px 20px;
    }
    .project-cta-headline {
        font-size: 19px;
    }
    .project-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .project-cta-actions a {
        width: 100%;
        justify-content: center;
    }
}
