/* =========================================================
   Tile Projects – Home Section & Detail Page
   Swarnaa Agency | tile-projects.css
   ========================================================= */

/* ── Section Wrapper ──────────────────────────────────── */
.tp-section {
    padding: 80px 0 100px;
    background-color: #fdf9f5;
    position: relative;
    overflow: hidden;
}
.tp-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    /* background: linear-gradient(90deg, var(--wallox-base, #c8a96e), var(--wallox-primary, #1e1b1b)); */
}

/* ── Project Card ─────────────────────────────────────── */
.tp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(0,0,0,.06);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
}

/* Card thumbnail */
.tp-card__thumb {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.tp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tp-card:hover .tp-card__thumb img {
    transform: scale(1.06);
}
.tp-card__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15,12,10,.55) 100%);
    pointer-events: none;
}

/* Location badge on the image */
.tp-card__badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--wallox-base, #c8a96e);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tp-card__badge i { font-size: 10px; }

/* Card body */
.tp-card__body {
    padding: 22px 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tp-card__type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wallox-base, #c8a96e);
    margin-bottom: 6px;
}
.tp-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b1b;
    line-height: 1.35;
    margin-bottom: 12px;
}
.tp-card__title a {
    color: inherit;
    text-decoration: none;
}
.tp-card__title a:hover { color: var(--wallox-base, #c8a96e); }

.tp-card__products {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 6px;
    flex: 1;
}
.tp-card__products i {
    color: var(--wallox-base, #c8a96e);
    margin-top: 9px;
    flex-shrink: 0;
    font-size: 20px;
}

/* Card footer */
.tp-card__footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #f0ebe4;
}
.tp-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--wallox-primary, #1e1b1b);
    text-decoration: none;
    transition: color .25s, gap .25s;
}
.tp-card__link i {
    font-size: 12px;
    transition: transform .3s;
}
.tp-card__link:hover {
    color: var(--wallox-base, #c8a96e);
    gap: 11px;
}
.tp-card__link:hover i { transform: translateX(3px) translateY(-3px); }

/* ── View All CTA Row ─────────────────────────────────── */
.tp-cta-row {
    margin-top: 50px;
    text-align: center;
}

/* ── Background decorative shape ─────────────────────── */
.tp-section__shape {
    position: absolute;
    bottom: -30px;
    right: -40px;
    width: 260px;
    opacity: .04;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────── */
/*   DETAIL PAGE STYLES                                    */
/* ─────────────────────────────────────────────────────── */

/* Quick-facts sidebar */
.tp-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.tp-sidebar__title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #1e1b1b;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--wallox-base, #c8a96e);
    margin-bottom: 20px;
}
.tp-sidebar__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
    font-size: 13.5px;
    color: #444;
}
.tp-sidebar__row:last-child { border-bottom: none; }
.tp-sidebar__row i {
    color: var(--wallox-base, #c8a96e);
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tp-sidebar__label {
    font-weight: 700;
    color: #1e1b1b;
    display: block;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Product tags in sidebar */
.tp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.tp-tag {
    background: #fdf9f5;
    border: 1px solid #e8ddd2;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    color: #555;
}

/* Section headings on detail page */
.tp-detail-section {
    margin-bottom: 48px;
}
.tp-detail-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tp-detail-section__num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wallox-base, #c8a96e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}
.tp-detail-section__title {
    font-size: 22px;
    font-weight: 800;
    color: #1e1b1b;
    margin: 0;
}

/* Scope items */
.tp-scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tp-scope-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
    font-size: 14px;
    color: #555;
}
.tp-scope-list li:last-child { border-bottom: none; }
.tp-scope-list li i {
    color: var(--wallox-base, #c8a96e);
    margin-top: 2px;
    flex-shrink: 0;
}
.tp-scope-list strong { color: #1e1b1b; }

/* Gallery grid */
.tp-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tp-gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.tp-gallery img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .4s;
}
.tp-gallery a:hover img { transform: scale(1.05); }
.tp-gallery__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888;
    margin-top: 6px;
    text-align: center;
}

/* Services icon list */
.tp-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tp-services-list li {
    background: #fdf9f5;
    border: 1px solid #e8ddd2;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.tp-services-list li i {
    font-size: 18px;
    color: var(--wallox-base, #c8a96e);
    flex-shrink: 0;
}

/* Testimonial card */
.tp-testimonial {
    background: linear-gradient(135deg, #1e1b1b 0%, #2e2924 100%);
    border-radius: 14px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.tp-testimonial__quote-mark {
    position: absolute;
    top: 10px; left: 24px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(200,169,110,.18);
    line-height: 1;
    pointer-events: none;
}
.tp-testimonial__stars {
    color: #f5c518;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 3px;
}
.tp-testimonial__text {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,.88);
    margin-bottom: 24px;
    font-style: italic;
}
.tp-testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tp-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wallox-base, #c8a96e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.tp-testimonial__name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.tp-testimonial__role {
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

/* CTA Banner (detail page) */
.tp-cta-banner {
    background: linear-gradient(135deg, var(--wallox-base, #c8a96e) 0%, #a8874e 100%);
    border-radius: 14px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
}
.tp-cta-banner__text h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.tp-cta-banner__text p {
    color: rgba(255,255,255,.85);
    margin: 0;
    font-size: 14px;
}
.tp-cta-banner a.wallox-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
    .tp-sidebar { position: static; margin-top: 40px; }
    .tp-cta-banner { flex-direction: column; text-align: center; padding: 30px 24px; }
    .tp-services-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .tp-card__thumb { height: 200px; }
    .tp-gallery { grid-template-columns: 1fr; }
    .tp-gallery img { height: 200px; }
    .tp-testimonial { padding: 28px 24px; }
}
