
/*
Theme Name: astra-child
Author: TBI
Description: astra-child
Version: 1.0
Template: astra

This is the child theme for Astra theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

body {
    font-family: ui-sans-serif, sans-serif;
}

span.black {
    color: #000;
}
.gallery-item .gallery-caption {
    color: #fff !important;
}
span.black:hover {
    color: red;
}
span.white {
    color: #ffffff;
}

.footer-contact-info a {
    color: #9CA3AF;
}
.footer-contact-info a:hover {
    color: #DC2626;
}
.hfe-nav-menu li.current_page_item a.hfe-menu-item {
    text-decoration: underline !important;
}

div#n2-ss-2 .nextend-arrow {
    background: #adadad80;
    padding: 10px;
    border-radius: 50px;
}
.gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 384px;
    height: 384px;
}
.gallery-box figure.gallery-item img{
  transition: transform 0.3s ease-in-out;
  /* border-radius: 8px !important; */
}

figure.gallery-item {
    position: relative;
    overflow: hidden;
}
 
figure.gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 92.6%;
    height: 93%;
    background: #00000071;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}
 
figure.gallery-item:hover::after {
    opacity: 0.8; /* Dark overlay */
}

.gallery-box figure.gallery-item img:hover {
  transform: scale(1.1); 
}

figure.gallery-item {
    position: relative;
}

.gallery-icon.landscape{
    border-radius: 8px !important;
}



.wp-caption-text.gallery-caption {
    position: absolute;
    bottom: 40px;
    border: none;
    font-size: 20px;
    color: #fff !important;
    font-weight: 700;
    display: none;
    z-index: 1;
}
.gallery-item:hover .wp-caption-text {
  display: block;
}


.consultation-btn {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #e5e7eb !important;
    background: #dc2626 !important;
    border-radius: 50px !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    font-size: 16px !important;
}
.contact-form-page label {
    color: #374151;
    font-family: 'Open Sans';
    font-weight: 700;
    text-transform: capitalize;
    font-size: 14px;
}

.contact-form-page input {
    border-color: #d1d5db !important;
    padding: 23px 14px !important;
}
.contact-form-page textarea.wpcf7-form-control.wpcf7-textarea {
    resize: none;
    max-height: 120px !important;
}

.contact-form-page p {
    margin-bottom: 15px;
}
.contact-form-page span.wpcf7-form-control-wrap {
    margin-bottom: 15px;
}

.wpcf7-form select.wpcf7-form-control {
    background-color: #ffffff !important;
    color: #000;
    height: 50px;
}
.contact-form-page br {
    display: none;
}

.icons-tab p.elementor-icon-box-description a {
    font-size: 16px !important;
    color: #374151 !important;
    text-decoration: none;
}
.consultation-btn:hover {
    background: #b91c1c;
}

.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #23282d;
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 auto;
    position: relative;
    text-align: center;
    left: 50%;
    top: 25px;
}


figure.gallery-item {
    overflow: hidden; /* ensure the image doesn't overflow */
}

figure.gallery-item:hover img {
    transform: scale(1.1); /* zoom in on hover */
}
@media (max-width: 768px) {

    .process-arrow{
    transition: transform 0.3s ease;
    transform: rotate(90deg) !important;
}

    div#n2-ss-2 .n2-font-5eb275eaa7da6571777d7ccff18607aa-hover {
        font-size: 18px !important;
        line-height: 20px !important;
    }
div#n2-ss-2 .n2-font-62e06a2ab48fe5828b8836dfba00c048-hover {
    font-size: 16px !important;
}
}

.consultation-btn {
    position: relative;
    width: 100%;
}

.consultation-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-send'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'%3E%3C/path%3E%3Cpath d='M22 2 11 13'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
}



/* featured project page css */

.mt-featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mt-project-card {
    text-align: center;
    transition: all 0.3s ease;
}

.mt-project-card a {
    text-decoration: none;
    color: #000;
}

.mt-project-image {
    height: 260px;          /* Fixed height (you can adjust) */
    overflow: hidden;
    border-radius: 8px;
}

.mt-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* IMPORTANT: image crop karega, stretch nahi */
    filter: grayscale(100%);
    transition: all 0.4s ease;
}
.mt-project-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.mt-project-title {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.mt-pagination {
    margin-top: 40px;
    text-align: center;
}

.mt-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    background: #f2f2f2;
    color: #000;
    border-radius: 4px;
}

.mt-pagination .current {
    background: #000;
    color: #fff;
}


/* =====================================
   PROJECT GRID (RESPONSIVE)
===================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    justify-items: center;
}



/* =====================================
   PROJECT CARD (RESPONSIVE)
===================================== */
.project-card {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}


/* =====================================
   PROJECT THUMB
===================================== */
.project-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}

/* Tablet */
@media (max-width: 1024px) {
    .project-thumb img {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .project-thumb img {
        height: 180px;
    }
}


/* =====================================
   HOVER OVERLAY
===================================== */
.view-text {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity .3s ease;
}

.project-thumb:hover .view-text {
    opacity: 1;
}

/* Mobile – always visible (no hover issue) */
@media (max-width: 768px) {
    .view-text {
        opacity: 1;
        background: rgba(0,0,0,.4);
    }
}


/* =====================================
   PROJECT TITLE
===================================== */
.project-title {
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

@media (max-width: 600px) {
    .project-title {
        font-size: 16px;
        padding: 12px;
    }
}

/* =====================================
   FULLSCREEN POPUP (TRANSPARENT BLACK)
===================================== */
.gallery-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75); /* 👈 less black */
    backdrop-filter: blur(6px);  /* 👈 background halka visible */
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-popup.active {
    display: flex;
}

/* =====================================
   POPUP CONTENT
===================================== */
.gallery-popup .popup-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-popup .gallery-carousel {
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0;
    max-width: 100%;
}


/* =====================================
   IMAGE CENTER + SCALE FIX
===================================== */
.gallery-carousel .slick-track {
    display: flex !important;
    align-items: center;
}

.gallery-carousel .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.gallery-carousel img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =====================================
   CLOSE BUTTON
===================================== */
.popup-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 99999;
    transition: opacity .3s ease, transform .3s ease;
}

.popup-close:hover {
    opacity: 0.75;
    transform: rotate(90deg);
}

/* =====================================
   SLICK ARROWS (NETFLIX STYLE)
===================================== */
.gallery-popup .slick-prev,
.gallery-popup .slick-next {
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.55) !important;
    border-radius: 50%;
    z-index: 50;
    transition: background .3s ease, transform .3s ease;
}

.gallery-popup .slick-prev:hover,
.gallery-popup .slick-next:hover {
    background: rgba(0,0,0,0.75) !important;
    transform: scale(1.1);
}

.gallery-popup .slick-prev:before,
.gallery-popup .slick-next:before {
    font-size: 26px;
    color: #fff;
}

.gallery-popup .slick-prev {
    left: 30px;
}

.gallery-popup .slick-next {
    right: 30px;
}

/* =====================================
   SLICK DOTS - ALWAYS CENTERED
===================================== */
.gallery-popup .slick-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    
    display: inline-flex !important;
    justify-content: center;
    align-items: center;

    width: auto !important;        /* 🔥 important fix */
    padding: 6px 14px;
    border-radius: 20px;

    background: rgba(0,0,0,0.35);  /* optional premium look */
    backdrop-filter: blur(4px);
}

.gallery-popup .slick-dots li {
    margin: 0 4px;
    width: auto;
}

.gallery-popup .slick-dots li button {
    padding: 0;
}

.gallery-popup .slick-dots li button:before {
    font-size: 9px;
    color: #aaa;
    opacity: 1;
}

.gallery-popup .slick-dots li.slick-active button:before {
    color: #fff;
}


 
/* ===============================
   FEATURED PROJECTS GRID
================================ */
.custom-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* ===============================
   PROJECT CARD
================================ */
.custom-page-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 14px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
    overflow: hidden;
}

/* Hover effect */
.custom-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* ===============================
   IMAGE (GREYSCALE → COLOR ON HOVER)
================================ */
.custom-page-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Color image only on hover */
.custom-page-card:hover .custom-page-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ===============================
   TITLE
================================ */
.custom-page-title {
    margin-top: 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
}

.custom-page-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.custom-page-title a:hover {
    color: #d62828; /* accent color */
}

/* ===============================
   RESPONSIVE FIXES
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .custom-page-grid {
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-page-card {
        padding: 16px;
    }

    .custom-page-title {
        font-size: 1.3rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .custom-page-title {
        font-size: 1.15rem;
    }
}
