/* ==========================================================================
   THE FINITE CO. — ABOUT, TESTIMONIALS, BLOG, CONTACT & GALLERY STYLESHEET
   ========================================================================== */

/* ==========================================================================
   CATEGORIES PAGE — HOME SECTION MATCHING DESIGN (SHARP CORNERS & FIXED ALIGNMENT)
   ========================================================================== */
.categories-page-sec {
    padding: 70px 5% 90px;
    background-color: var(--bg-main, #f9f8f5);
    transition: background 0.35s ease;
}

body.dark-theme .categories-page-sec {
    background-color: #111111;
}

.categories-page-sec .category-filter-bar {
    margin-top: 0;
    margin-bottom: 45px;
    padding: 0 15px;
}

.categories-page-sec .banner-shortcode-wrap.style_12 {
    display: block;
    border-radius: 0px !important; /* Sharp rectangular edges - NO BORDER RADIUS */
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 30px;
}

.categories-page-sec .banner-shortcode-wrap.style_12:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.categories-page-sec .banner-content img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 0px !important;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.categories-page-sec .banner-shortcode-wrap:hover .banner-content img {
    transform: scale(1.08);
}

.categories-page-sec .banner-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .categories-page-sec {
        padding: 40px 4% 60px;
    }
    .categories-page-sec .banner-content img {
        height: 260px;
    }
    .categories-page-sec .banner-title {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
}

/* Generic Page Section Wrapper */
.page-content-section {
    padding: 60px 5% 90px;
    background-color: var(--bg-main, #f9f8f5);
    transition: background 0.35s ease;
}

body.dark-theme .page-content-section {
    background-color: #111111;
}

.page-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* ==========================================================================
   ABOUT US PAGE
   ========================================================================== */
.about-story-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-story-col-img {
    flex: 1 1 50%;
    position: relative;
}

.about-img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    aspect-ratio: 4 / 3;
}

.about-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #c5a059;
    color: #111111;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-badge-experience h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.about-badge-experience p {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 4px 0 0 0;
}

.about-story-col-text {
    flex: 1 1 50%;
}

.about-section-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #c5a059;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.about-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-title, #111111);
    margin: 0 0 20px 0;
}

body.dark-theme .about-title {
    color: #ffffff;
}

.about-lead-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body, #555555);
    margin-bottom: 30px;
}

body.dark-theme .about-lead-desc {
    color: #aaaaaa;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.value-card {
    background: var(--bg-card, #ffffff);
    border-radius: 18px;
    padding: 35px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

body.dark-theme .value-card {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(197, 160, 89, 0.12);
    color: #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.value-card h4 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-title, #111111);
    margin: 0 0 10px 0;
}

body.dark-theme .value-card h4 {
    color: #ffffff;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body, #666666);
    margin: 0;
}

body.dark-theme .value-card p {
    color: #aaaaaa;
}

/* Stats Counter Bar */
.about-stats-bar {
    background: #111111;
    color: #ffffff;
    border-radius: 20px;
    padding: 45px 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 44px;
    font-weight: 800;
    color: #c5a059;
    margin: 0 0 6px 0;
}

.stat-item p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}


/* ==========================================================================
   TESTIMONIALS PAGE
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testi-review-card {
    background: var(--bg-card, #ffffff);
    border-radius: 18px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
}

body.dark-theme .testi-review-card {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.testi-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
}

.testi-card-top {
    margin-bottom: 20px;
}

.testi-stars-row {
    color: #c5a059;
    font-size: 14px;
    margin-bottom: 14px;
}

.testi-quote-text {
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-body, #555555);
    margin: 0 0 20px 0;
}

body.dark-theme .testi-quote-text {
    color: #cccccc;
}

.testi-author-flex {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-theme .testi-author-flex {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5a059;
}

.testi-author-info h5 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title, #111111);
    margin: 0 0 2px 0;
}

body.dark-theme .testi-author-info h5 {
    color: #ffffff;
}

.testi-author-info span {
    font-size: 12px;
    color: #888888;
}

.testi-project-tag {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c5a059;
    background: rgba(197, 160, 89, 0.12);
    padding: 4px 10px;
    border-radius: 12px;
}


/* ==========================================================================
   BLOG & BLOG DETAIL PAGES
   ========================================================================== */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--bg-card, #ffffff);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

body.dark-theme .blog-card {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(197, 160, 89, 0.3);
}

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #c5a059;
    color: #111111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.blog-card-body {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta-date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-title, #111111);
    margin: 0 0 12px 0;
    transition: color 0.25s ease;
}

body.dark-theme .blog-card-title {
    color: #ffffff;
}

.blog-card:hover .blog-card-title {
    color: #c5a059 !important;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body, #666666);
    margin-bottom: 20px;
    flex: 1;
}

body.dark-theme .blog-card-excerpt {
    color: #aaaaaa;
}

.blog-read-more {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-title, #111111);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

body.dark-theme .blog-read-more {
    color: #ffffff;
}

.blog-card:hover .blog-read-more {
    color: #c5a059 !important;
}

/* Blog Detail Layout */
.blog-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-detail-content {
    background: var(--bg-card, #ffffff);
    border-radius: 20px;
    padding: 45px 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 50px;
}

body.dark-theme .blog-detail-content {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #888888;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 18px;
}

body.dark-theme .blog-detail-meta {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.blog-detail-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-body, #444444);
}

body.dark-theme .blog-detail-body {
    color: #cccccc;
}

.blog-detail-body p {
    margin-bottom: 24px;
}

.blog-detail-body h2,
.blog-detail-body h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: var(--text-title, #111111);
    margin: 35px 0 18px 0;
}

body.dark-theme .blog-detail-body h2,
body.dark-theme .blog-detail-body h3 {
    color: #ffffff;
}

.blog-blockquote {
    border-left: 4px solid #c5a059;
    background: rgba(197, 160, 89, 0.08);
    padding: 24px 30px;
    margin: 30px 0;
    border-radius: 0 14px 14px 0;
    font-style: italic;
    font-size: 18px;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-title, #111111);
}

body.dark-theme .blog-blockquote {
    color: #ffffff;
}


/* ==========================================================================
   CONTACT US PAGE
   ========================================================================== */
.contact-grid-row {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

.contact-info-col {
    flex: 1 1 40%;
}

.contact-card {
    background: var(--bg-card, #ffffff);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

body.dark-theme .contact-card {
    background: #171717;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(197, 160, 89, 0.12);
    color: #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-title, #111111);
    margin: 0 0 4px 0;
}

body.dark-theme .contact-info-text h5 {
    color: #ffffff;
}

.contact-info-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body, #666666);
    margin: 0;
}

body.dark-theme .contact-info-text p {
    color: #aaaaaa;
}

.contact-form-col {
    flex: 1 1 60%;
}


/* ==========================================================================
   PORTFOLIO & GALLERY PAGE
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c5a059;
    margin-bottom: 6px;
}

.gallery-card-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.gallery-card-loc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   FULLSCREEN GALLERY LIGHTBOX POPUP MODAL
   ========================================================================== */
.lightbox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap {
    max-width: 100%;
    max-height: 75vh;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption-box {
    margin-top: 18px;
    text-align: center;
    color: #ffffff;
}

.lightbox-caption-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.lightbox-caption-sub {
    font-size: 13px;
    color: #c5a059;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1000000;
}

.lightbox-close-btn:hover {
    background: #c5a059;
    color: #111111;
    border-color: #c5a059;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1000000;
}

.lightbox-nav-btn:hover {
    background: #c5a059;
    color: #111111;
    border-color: #c5a059;
}

.lightbox-prev-btn {
    left: 30px;
}

.lightbox-next-btn {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-prev-btn { left: 10px; }
    .lightbox-next-btn { right: 10px; }
    .lightbox-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-story-row,
    .contact-grid-row {
        flex-direction: column;
        gap: 40px;
    }

    .about-story-col-img,
    .about-story-col-text,
    .contact-info-col,
    .contact-form-col {
        width: 100%;
        max-width: 100%;
    }

    .about-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid,
    .testimonials-grid,
    .blog-posts-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-bar {
        grid-template-columns: 1fr;
    }

    .blog-detail-content {
        padding: 25px 20px;
    }
}
