/**
 * POF INFRAA — UI Kit enhancements
 * Inspired by Material Kit / Pixel / Bootstrap 5 patterns
 * Brand: red (#c41e3a) + charcoal navy
 */

:root {
    --kit-primary: #c41e3a;
    --kit-primary-dark: #9a1830;
    --kit-navy: #0f1419;
    --kit-surface: #ffffff;
    --kit-muted: #f8fafc;
    --kit-text: #1e293b;
    --kit-sub: #64748b;
    --kit-radius: 1rem;
    --kit-shadow: 0 10px 40px rgba(15, 20, 25, 0.08);
    --kit-shadow-lg: 0 20px 60px rgba(15, 20, 25, 0.14);
}

/* Page hero banner (Material Kit style) */
.page-hero-kit {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 55%, #2a1520 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero-kit::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(196, 30, 58, 0.35), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(201, 162, 39, 0.12), transparent 35%);
    pointer-events: none;
}

.page-hero-kit .container {
    position: relative;
    z-index: 1;
}

.page-hero-kit .kit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero-kit h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero-kit p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

.page-hero-kit.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* Elevated cards */
.kit-card {
    background: var(--kit-surface);
    border: 1px solid #eef2f6;
    border-radius: var(--kit-radius);
    box-shadow: var(--kit-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.kit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kit-shadow-lg);
}

.kit-card-body {
    padding: 1.75rem;
}

.kit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(196, 30, 58, 0.04));
    color: var(--kit-primary);
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.kit-stat {
    text-align: center;
    padding: 1.5rem 1rem;
}

.kit-stat .value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--kit-primary);
    line-height: 1.1;
}

.kit-stat .label {
    font-weight: 700;
    color: var(--kit-text);
    margin-top: 0.35rem;
}

.kit-stat .sub {
    font-size: 0.8rem;
    color: var(--kit-sub);
}

/* Accordion FAQs (Bootstrap enhanced) */
.kit-accordion .accordion-item {
    border: 1px solid #eef2f6;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 20, 25, 0.04);
}

.kit-accordion .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--kit-text);
    box-shadow: none !important;
    background: #fff;
}

.kit-accordion .accordion-button:not(.collapsed) {
    color: var(--kit-primary);
    background: rgba(196, 30, 58, 0.04);
}

.kit-accordion .accordion-button::after {
    background-size: 1rem;
}

.kit-accordion .accordion-body {
    color: var(--kit-sub);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Testimonial kit cards */
.kit-testimonial {
    position: relative;
    padding: 1.75rem;
}

.kit-testimonial .quote-mark {
    font-size: 2.5rem;
    color: rgba(196, 30, 58, 0.15);
    line-height: 1;
    font-family: Georgia, serif;
}

.kit-testimonial .stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.kit-testimonial .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kit-primary), #e85a6e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* CTA band */
.kit-cta-band {
    background: linear-gradient(135deg, var(--kit-primary) 0%, var(--kit-primary-dark) 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.kit-cta-band h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.kit-cta-band p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.kit-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--kit-primary);
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kit-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--kit-primary-dark);
}

.kit-btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.kit-btn-outline-light:hover {
    background: #fff;
    color: var(--kit-primary);
}

/* Footer extras */
.site-footer-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer-quicklinks a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    transition: all 0.2s;
}

.site-footer-quicklinks a:hover {
    color: #fff;
    border-color: var(--kit-primary);
    background: rgba(196, 30, 58, 0.2);
}

.site-footer-projects a i {
    font-size: 0.6rem;
    margin-right: 0.35rem;
    opacity: 0.6;
}

#siteFooter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* About feature list */
.kit-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kit-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--kit-text);
    font-size: 0.95rem;
}

.kit-check-list li:last-child {
    border-bottom: none;
}

.kit-check-list li i {
    color: var(--kit-primary);
    margin-top: 0.2rem;
}

/* Ensure footer never clipped — avoid flex column layout bugs */
html, body {
    overflow-x: hidden;
    min-height: 100%;
}

#siteFooter.premium-footer {
    margin-top: 0;
    clear: both;
}

@media (max-width: 767px) {
    .page-hero-kit {
        padding: 3rem 0 2.5rem;
    }
}

/* ========== GLOBAL UI POLISH ========== */
.btn-premium-solid,
.mui-btn-filled,
.bhk-inquiry-btn {
    position: relative;
    overflow: hidden;
}

.btn-premium-solid::after,
.mui-btn-filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn-premium-solid:hover::after,
.mui-btn-filled:hover::after {
    transform: translateX(120%);
}

/* Property types glow */
.property-type-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.property-type-icon {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(196, 30, 58, 0.04));
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.12);
}

/* Amenities cells hover */
.amenity-bordered-cell {
    transition: background 0.25s ease;
}

.amenity-bordered-cell:hover {
    background: linear-gradient(135deg, #fff 0%, #fff5f6 100%);
}

.amenity-bordered-icon {
    transition: transform 0.25s ease, background 0.25s ease;
}

.amenity-bordered-cell:hover .amenity-bordered-icon {
    transform: scale(1.08);
    background: rgba(196, 30, 58, 0.08);
}

/* BHK inquiry cards */
.bhk-inquiry-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bhk-inquiry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.bhk-inquiry-heading,
.property-types-heading,
.floor-plans-heading {
    position: relative;
}

.floor-plans-heading::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--kit-primary), #e8d48b);
}

.property-types-heading::after,
.bhk-inquiry-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.75rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #1e293b, var(--kit-primary));
}

/* CTA section polish */
.cta-mui-box,
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem !important;
}

/* Soft section rhythm */
.home-page > section,
.home-page > .home-section {
    position: relative;
}

/* Project / property cards lift */
.home-page .project-card-enhanced,
.home-page .property-card,
.page-home-premium .glossy-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-page .project-card-enhanced:hover,
.page-home-premium .glossy-card:hover {
    transform: translateY(-8px);
}

/* Header polish */
.premium-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(15, 20, 25, 0.1);
}

.btn-premium-solid {
    box-shadow: 0 8px 22px rgba(196, 30, 58, 0.3);
}

.btn-premium-solid:hover {
    box-shadow: 0 12px 28px rgba(196, 30, 58, 0.42);
    transform: translateY(-1px);
}

/* Float buttons pulse */
.float-premium-wa {
    animation: floatPulse 2.8s ease-in-out infinite;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* Footer BHK cards hover */
.footer-bhk-card {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-bhk-card:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.05);
}

/* Form controls on kit pages */
.kit-card .form-control,
.kit-card .form-select {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.kit-card .form-control:focus,
.kit-card .form-select:focus {
    border-color: var(--kit-primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.12);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(196, 30, 58, 0.18);
    color: #0f1419;
}

/* Force mobile hero full-image stack (beats older rules) */
@media (max-width: 991px) {
    .hero-premium-clean.hero-section-pro .hero-slider,
    .hero-premium-clean.hero-section-pro .swiper-wrapper,
    .hero-premium-clean.hero-section-pro .swiper-slide,
    .hero-premium-clean.hero-section-pro .hero-slide-inner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }

    .hero-premium-clean .hero-slide-photo {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: none !important;
        display: block !important;
    }

    .hero-premium-clean .hero-overlay,
    .hero-premium-clean .hero-overlay-pro {
        display: none !important;
        opacity: 0 !important;
    }

    .premium-logo-img {
        height: 58px !important;
        max-width: 170px !important;
        object-fit: contain !important;
    }
}

/* Full-image media frames */
.media-frame {
    background: #0f1419;
}

.media-frame-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 420px;
    margin: 0 auto;
}

.project-preview-media {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: auto !important;
    background: #0f1419;
    overflow: visible !important;
    display: block;
    line-height: 0;
}

.project-preview-media img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    transform: none !important;
}

.project-preview-card {
    overflow: hidden;
}

.project-preview-card:hover .project-preview-media img {
    transform: none !important;
}

/* Project grid photos — contain inside uniform frame (both axes set) */
.pcv2-media {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f1419;
}

.pcv2-photo-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.pcv2-photo,
.projects-grid img.pcv2-photo,
.projects-section img.pcv2-photo {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.video-frame {
    background: #0f1419;
    aspect-ratio: 16 / 9;
}

.video-frame-el {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.property-card-img {
    height: auto !important;
    aspect-ratio: 16 / 10;
    background: #0f1419;
}

.property-card-img img {
    object-fit: contain !important;
    background: #0f1419;
}
