/* ============================================================
   GREEN GARDENS ,  CENTRALIZED STYLES & INTERACTIVE HUB
   Contains shared layout tokens, common elements, and styling for
   the interactive "NRI Family Reassurance" section.
   ============================================================ */

:root {
    --primary-color1: #9E8B5A;
    /* Gold accent */
    --title-color: #102A24;
    /* Forest green */
    --body-color: #555555;
    --bg-color: #fcfbf7;
}

/* ── BREADCRUMB SECTION ───────────────────────────────── */
.breadcrumb-section {
    background: #102A24;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-content h1 {
    font-family: 'Marcellus', serif;
    color: #fff;
    font-size: 48px;
    margin-top: 10px;
}

.breadcrumb-list li,
.breadcrumb-list li a {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.breadcrumb-list li.active {
    color: var(--primary-color1);
}

/* ── COMMON HEADINGS & BUTTONS ────────────────────────── */
.eyebrow-dance {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    color: var(--primary-color1);
    display: block;
    margin-bottom: 15px;
}

.section-title h2 {
    font-family: 'Marcellus', serif;
    color: #102A24;
    font-size: 40px;
    line-height: 1.2;
}

.section-title p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin-top: 20px;
}

/* ── NRI PEACEMIND INTERACTIVE HUB ────────────────────── */
.family-section {
    background: #102A24;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.family-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(158, 139, 90, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.family-section::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(158, 139, 90, 0.05) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.family-section .section-title span {
    color: var(--primary-color1);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.family-section .section-title h2 {
    color: #fff !important;
    font-family: 'Marcellus', serif;
    font-size: 40px;
    margin-top: 15px;
}

.family-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 750px;
    margin: 20px auto 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

/* Showcase Card (Left) */
.nri-promise-showcase {
    position: relative;
    padding: 10px;
    z-index: 2;
}

.showcase-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(158, 139, 90, 0.2), transparent);
    filter: blur(20px);
    z-index: -1;
    border-radius: 8px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 45px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(158, 139, 90, 0.15);
    color: var(--primary-color1);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(158, 139, 90, 0.3);
    margin-bottom: 25px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color1);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(158, 139, 90, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(158, 139, 90, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(158, 139, 90, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(158, 139, 90, 0);
    }
}

.showcase-title {
    font-family: 'Marcellus', serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.showcase-text {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    min-height: 80px;
    transition: all 0.3s ease;
}

.showcase-quote {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: var(--primary-color1);
    line-height: 1.4;
    margin-bottom: 10px;
}

.quote-author {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs Panel (Right) */
.nri-tab-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nri-tab-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.35s ease;
    overflow: hidden;
}

.nri-tab-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(158, 139, 90, 0.2);
}

.nri-tab-item.active {
    background: rgba(158, 139, 90, 0.08);
    border-color: var(--primary-color1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tab-header {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    gap: 20px;
    position: relative;
}

.tab-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nri-tab-item.active .tab-icon {
    background: var(--primary-color1);
    color: #102A24;
    border-color: var(--primary-color1);
    transform: scale(1.05);
}

.tab-header-text {
    flex-grow: 1;
}

.tab-header-text h4 {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nri-tab-item.active .tab-header-text h4 {
    color: var(--primary-color1);
}

.tab-header-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.tab-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.35s ease;
}

.nri-tab-item.active .tab-arrow {
    color: var(--primary-color1);
    transform: rotate(90deg);
}

/* Animations */
.nri-fade-in {
    animation: nriFadeEffect 0.5s forwards;
}

@keyframes nriFadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .nri-hub-layout {
        flex-direction: column-reverse;
    }

    .nri-promise-showcase {
        margin-top: 40px;
    }

    .showcase-card {
        padding: 35px 25px;
    }

    .family-section .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 575px) {
    .tab-header {
        padding: 18px 20px;
        gap: 15px;
    }

    .tab-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .tab-header-text h4 {
        font-size: 16px;
    }

    .tab-header-text p {
        font-size: 12px;
    }
}

/* ── CENTRAL RESPONSIVENESS & MEDIA REFINEMENTS ────────── */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.home1-banner-section .banner-wrapper .banner-img-area .banner-video {
    min-height: 800px;
    object-fit: cover;
    width: 100%;
    object-position: center center;
}

@media (max-width: 767px) {
    .home1-banner-section .banner-wrapper .banner-img-area .banner-video {
        min-height: 580px;
    }
}

/* ── HEADER POSITIONING REFINEMENTS ────────────────────── */
/* Reset default translation/gap now that the offer topbar is removed */
.header-offer-topbar-wrap header.style-1 {
    transform: translateY(0);
}

/* Add elegant breathing room at the top of the page for non-sticky header */
.header-offer-topbar-wrap:not(.sticky) header.style-1 {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

@media (max-width: 576px) {
    .header-offer-topbar-wrap header.style-1 {
        transform: translateY(0);
    }
}

/* ── LOCATION ADVANTAGE SECTION ───────────────────────── */
.location-section {
    background: linear-gradient(180deg, #fcfbf7 0%, #edf1ee 100%);
    position: relative;
    z-index: 1;
}

/* Nav Pills Styling */
.location-modern-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(16, 42, 36, 0.04);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(16, 42, 36, 0.08);
}

.location-modern-tabs .nav-item {
    margin: 0;
}

.location-modern-tabs .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #102A24;
    background: transparent;
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: capitalize;
}

.location-modern-tabs .nav-link:hover {
    color: var(--primary-color1);
    background: rgba(158, 139, 90, 0.08);
}

.location-modern-tabs .nav-link.active {
    background: #102A24;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 42, 36, 0.2);
}

/* Cards Stack */
.location-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

/* Premium Card Design */
.location-premium-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(16, 42, 36, 0.06);
    border-left: 4px solid var(--primary-color1);
    box-shadow: 0 5px 20px rgba(16, 42, 36, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.location-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 42, 36, 0.08);
    border-color: rgba(158, 139, 90, 0.3);
    border-left-color: #102A24;
}

.location-premium-card .card-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(158, 139, 90, 0.1);
    color: #102A24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.location-premium-card:hover .card-icon-container {
    background: #102A24;
    color: #ffffff;
}

.location-premium-card .card-details {
    flex-grow: 1;
    padding-right: 15px;
}

.location-premium-card .card-details h4 {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    color: #102A24;
    margin-bottom: 5px;
    font-weight: 600;
}

.location-premium-card .card-details p {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #666666;
    margin-bottom: 0;
    line-height: 1.5;
}

.location-premium-card .card-distance-badge {
    background: rgba(158, 139, 90, 0.12);
    border: 1px solid rgba(158, 139, 90, 0.25);
    color: #8c7847;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.location-premium-card:hover .card-distance-badge {
    background: var(--primary-color1);
    color: #ffffff;
    border-color: var(--primary-color1);
}

/* Google Map Wrapper */
.location-map-container-new {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(16, 42, 36, 0.1);
    border: 1px solid rgba(16, 42, 36, 0.08);
    height: 100%;
    min-height: 480px;
}

.location-map-container-new iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* Overlay Card on Map */
.map-overlay-card {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 42, 36, 0.08);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.map-overlay-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 42, 36, 0.06);
    color: #102A24;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.map-badge i {
    color: var(--primary-color1);
}

.map-overlay-card h5 {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    color: #102A24;
    margin-bottom: 6px;
    font-weight: 600;
}

.map-overlay-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555555;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Mobile & Tablet Specific Responsive Fixes */
@media (max-width: 991px) {
    .location-modern-tabs {
        border-radius: 20px;
        justify-content: center;
    }

    .location-map-container-new {
        min-height: 400px;
        margin-top: 20px;
    }

    .location-map-container-new iframe {
        min-height: 400px;
    }

    .map-overlay-card {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .location-modern-tabs .nav-link {
        font-size: 12px;
        padding: 8px 14px;
    }

    .location-premium-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .location-premium-card .card-icon-container {
        margin-right: 0;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .location-premium-card .card-distance-badge {
        align-self: flex-start;
    }
}

/* ── LAPTOP HEADER MENU SPACING ADJUSTMENTS ────────────── */
@media (max-width: 1399px) and (min-width: 992px) {
    header.style-1 .main-menu>ul>li>a {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }

    header.style-1 .main-menu>ul>li {
        padding: 28px 0 !important;
    }

    header.style-1 .logo-and-menu-area {
        gap: 15px !important;
    }
}

/* ── BODY BACKGROUND OVERRIDE FOR SUBPAGES ────────── */
body.bg-color {
    background-color: #fcfbf7 !important;
}

/* ── VILLAS HERO BANNER SECTION ──────────────────────── */
.villas-hero {
    background-color: #102A24 !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.villas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/innerpages/green-gardens-senior-living-villas-kerala.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.villas-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.villas-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 100px;
    text-align: center;
    width: 100%;
}

/* ── REDESIGNED STATS CARDS SECTION ───────────────────── */
.stats-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 30px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 42, 36, 0.08);
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 42, 36, 0.02);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(158, 139, 90, 0.3);
    box-shadow: 0 15px 30px rgba(16, 42, 36, 0.06);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(158, 139, 90, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.4s ease;
}

.stat-icon-wrapper svg path {
    fill: var(--primary-color1);
    transition: fill 0.4s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background: var(--primary-color1);
    transform: scale(1.05);
}

.stat-card:hover .stat-icon-wrapper svg path {
    fill: #ffffff;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-animate-number {
    font-family: var(--font-marcellus);
    font-size: 44px;
    font-weight: 500;
    color: #102A24;
    margin: 0;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-marcellus);
    font-size: 32px;
    font-weight: 500;
    color: #102A24;
    margin-left: 2px;
    line-height: 1;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Responsiveness for Stats Cards */
@media (max-width: 991px) {
    .stat-animate-number {
        font-size: 38px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .stats-grid-container {
        gap: 20px;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .stats-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 35px;
    }

    .stat-card {
        padding: 25px 20px;
    }
}

/* ── ABOUT IMAGE COLLAGE ───────────────────────────────── */
.about-image-collage {
    position: relative;
    width: 100%;
    padding-bottom: 60px;
    /* Space for the overlap image to hang down */
    padding-right: 40px;
    /* Space for the overlap image to sit right */
    z-index: 1;
}

.collage-main-img {
    position: relative;
    width: 82%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 42, 36, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.collage-main-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.collage-overlap-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    border-radius: 12px;
    background: #ffffff;
    padding: 0;
    border: 6px solid #ffffff;
    box-shadow: 0 15px 40px rgba(16, 42, 36, 0.16);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.collage-overlap-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    /* Offset the white border radius */
}

/* Hover Interactive Micro-Animations */
.about-image-collage:hover .collage-main-img {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(16, 42, 36, 0.12);
}

.about-image-collage:hover .collage-overlap-img {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 45px rgba(16, 42, 36, 0.22);
}

/* Responsive Viewport Overrides */
@media (max-width: 991px) {
    .about-image-collage {
        margin-top: 40px;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .about-image-collage {
        padding-bottom: 40px;
        padding-right: 20px;
    }

    .collage-overlap-img {
        border-width: 4px;
        width: 50%;
    }
}