/* =========================================================
   VIVIZA GRANDE – ELEMENTOR PLUGIN  |  viviza-grande.css
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
.vg-wrapper {
    --vg-primary:     #2E2657;
    --vg-primary-lt:  #3d3175;
    --vg-accent:      #FED529;
    --vg-accent-txt:  #8D182D;
    --vg-body:        #333333;
    --vg-body-lt:     #555555;
    --vg-bg:          #ffffff;
    --vg-bg-alt:      #f7f5ff;
    --vg-bg-warm:     #fffdf4;
    --vg-border:      #e2e0ea;
    --vg-radius:      10px;
    --vg-radius-lg:   16px;
    --vg-shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --vg-shadow-md:   0 6px 24px rgba(0,0,0,.10);
    --vg-shadow-lg:   0 12px 40px rgba(0,0,0,.14);
    --vg-transition:  0.35s ease;
    font-family: 'EB Garamond', 'Cambria', Georgia, serif;
    color: var(--vg-body);
    line-height: 1.7;
}

/* ── Reset ── */
.vg-wrapper * { box-sizing: border-box; }
.vg-wrapper a { text-decoration: none !important; color: inherit !important; }
.vg-wrapper ul { list-style: none; padding: 0; margin: 0; }
.vg-wrapper img { max-width: 100%; display: block; }

/* ── Container ── */
.vg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ════════════════════════════════
   STICKY TABS NAV
════════════════════════════════ */
.vg-tabs-nav {
    background: var(--vg-primary);
    box-shadow: 0 4px 16px rgba(46,38,87,.35);
    padding: 0;
    height: 50px;
    z-index: 1000;
    position: relative;
}
.vg-tabs-sticky {
    position: sticky;
    top: 0;
}

/* WordPress admin bar offset */
.admin-bar .vg-tabs-sticky { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .vg-tabs-sticky { top: 46px; }
}

/* Mobile scroll progress indicator */
.vg-tabs-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--vg-accent) 0%, transparent 100%);
    opacity: 0.5;
}

.vg-tabs-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    height: 50px;
    align-items: center;
}
.vg-tabs-list::-webkit-scrollbar { display: none; }
.vg-tabs-list li { flex: 0 0 auto; }

.vg-tab {
    border: 0;
    background: transparent;
    padding: 0 22px;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background var(--vg-transition), color var(--vg-transition);
    height: 50px;
    line-height: 1;
    position: relative;
    border-bottom: 3px solid transparent;
}
.vg-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vg-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.vg-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.vg-tab.active {
    color: var(--vg-accent);
    font-weight: 700;
    background: rgba(255,255,255,.06);
}
.vg-tab.active::after { transform: scaleX(1); }

/* ════════════════════════════════
   SECTION BASE — uniform spacing for all sections
════════════════════════════════ */

/* Single rule controls padding for EVERY section */
.vg-section {
    padding: 60px 0;
    margin: 0;
    background: var(--vg-bg);
}

/* Alternating backgrounds only — no padding overrides here */
.vg-section-overview     { background: var(--vg-bg); }
.vg-section-gallery      { background: var(--vg-bg-alt); }
.vg-section-highlights   { background: var(--vg-bg-warm); }
.vg-section-siteplan     { background: var(--vg-bg-alt); }
.vg-section-villas       { background: var(--vg-bg); }
.vg-section-testimonials { background: var(--vg-bg); }
.vg-section-banks        { background: var(--vg-bg-alt); }
.vg-section-videos       { background: var(--vg-bg); }

/* Section head */
.vg-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}
.vg-heading {
    color: var(--vg-primary) !important;
    font-size: 22px !important;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.2px;
    flex-shrink: 0;
}
.vg-hrline {
    flex: 1;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--vg-border);
}

/* ════════════════════════════════
   OVERVIEW
════════════════════════════════ */
.vg-section-overview { position: relative; overflow: hidden; }
.vg-body-text {
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 820px;
    color: var(--vg-body-lt);
}

/* ════════════════════════════════
   GALLERY / CAROUSEL IMAGES
════════════════════════════════ */
.vg-carousel-wrap { padding: 0 0 28px; }
.vg-gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--vg-radius);
    display: block;
    transition: transform var(--vg-transition), box-shadow var(--vg-transition);
}
.vg-gallery-img.vg-hover-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
    z-index: 2;
    position: relative;
}
.vg-siteplan-img { height: auto; max-height: 560px; }

/* owl dots */
.vg-wrapper .owl-theme .owl-dots { margin-top: 18px !important; }
.vg-wrapper .owl-theme .owl-dots .owl-dot span {
    width: 28px; height: 4px;
    border-radius: 30px;
    background: #ccc;
    transition: background .2s, width .2s;
}
.vg-wrapper .owl-theme .owl-dots .owl-dot.active span {
    background: var(--vg-primary) !important;
    width: 40px;
}
.vg-wrapper .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--vg-primary-lt) !important;
}

/* ════════════════════════════════
   PROJECT HIGHLIGHTS — Redesigned
════════════════════════════════ */
.vg-section-highlights {
    position: relative;
}

/* Hero image block */
.vg-highlights-img-wrap {
    margin-bottom: 40px;
    border-radius: var(--vg-radius-lg);
    overflow: hidden;
    box-shadow: var(--vg-shadow-md);
    line-height: 0;
}

/* <picture> must be block + full-width so the <img> inside fills the container */
.vg-highlights-img-wrap picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.vg-highlights-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* hover zoom — covers both <picture>+<img> and bare <img> fallback */
.vg-highlights-img-wrap:hover picture .vg-highlights-img,
.vg-highlights-img-wrap:hover > .vg-highlights-img {
    transform: scale(1.02);
}

/* ── Responsive image visibility ─────────────────────────
   .vg-desk-only → shown on desktop (≥769px), hidden on mobile
   .vg-mob-only  → shown on mobile (≤768px), hidden on desktop
   Both rules use !important to override Elementor resets.
───────────────────────────────────────────────────────── */
.vg-desk-only { display: block !important; }
.vg-mob-only  { display: none  !important; }

/* Location Advantage card */
.vg-location-advantage {
    background: #fff;
    border-radius: var(--vg-radius-lg);
    padding: 36px 40px;
    box-shadow: var(--vg-shadow-sm);
    border-left: 5px solid var(--vg-accent);
    margin-top: 8px;
}

/* Location sub-heading */
.vg-location-advantage .vg-section-head {
    margin-bottom: 24px;
}
.vg-location-advantage .vg-heading {
    font-size: 18px !important;
    color: var(--vg-primary) !important;
}

/* Location list items — grid on desktop */
.vg-location-advantage ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    padding: 0;
    margin: 0;
}
.vg-location-advantage li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--vg-body);
    border-bottom: 1px solid #f0eef8;
}
.vg-location-advantage li::before {
    content: '📍';
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
.vg-talk-bg {
    background: linear-gradient(135deg, #f9f6ff 0%, #fff 60%);
    position: relative;
    overflow: hidden;
}
.vg-talk-heading {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}
.vg-talk-bar {
    width: 6px;
    min-height: 110px;
    background: linear-gradient(180deg, var(--vg-primary) 0%, var(--vg-accent) 100%);
    border-radius: 4px;
    flex-shrink: 0;
}
.vg-talk-big-label {
    position: absolute;
    left: -8px;
    top: 0;
    font-size: 7rem;
    color: rgba(46,38,87,.07);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
}
.vg-talk-text-wrap { position: relative; z-index: 1; }
.vg-talk-sub  { font-size: 1.05rem; margin: 0 0 8px; color: var(--vg-body-lt); }
.vg-talk-main-heading { font-size: 34px !important; line-height: 1.2; color: var(--vg-primary) !important; }

.vg-testimonial-card {
    background: #fff;
    border-radius: var(--vg-radius-lg);
    padding: 36px 32px;
    box-shadow: var(--vg-shadow-sm);
    margin: 8px;
    transition: box-shadow var(--vg-transition), transform var(--vg-transition);
    border-top: 4px solid var(--vg-accent);
    position: relative;
}
.vg-testimonial-card:hover {
    box-shadow: var(--vg-shadow-lg);
    transform: translateY(-5px);
}
.vg-quote-icon {
    color: var(--vg-accent);
    font-size: 32px;
    margin-bottom: 18px;
    opacity: .9;
    display: block;
}
.vg-testimonial-text {
    font-size: 1rem;
    line-height: 1.80;
    margin-bottom: 20px;
    color: var(--vg-body-lt);
    font-style: italic;
}
.vg-testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vg-primary);
    margin: 0;
    font-style: normal;
}

/* ════════════════════════════════
   VIDEOS
════════════════════════════════ */
.vg-video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow-md);
}
.vg-video-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ════════════════════════════════
   BANK PARTNERS
════════════════════════════════ */
.vg-banks-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}
.vg-bank-logo-wrap {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius);
    transition: box-shadow var(--vg-transition), transform var(--vg-transition), border-color var(--vg-transition);
    box-shadow: var(--vg-shadow-sm);
}
.vg-bank-logo-wrap:hover {
    box-shadow: var(--vg-shadow-md);
    transform: translateY(-4px);
    border-color: var(--vg-accent);
}
.vg-bank-logo { height: 48px; width: auto; object-fit: contain; }
.vg-bank-placeholder {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vg-primary);
}

/* ════════════════════════════════
   ANIMATIONS (Intersection Observer)
════════════════════════════════ */
.vg-anim-fadein,
.vg-anim-fadeinup,
.vg-anim-fadeinleft {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(.25,.46,.45,.94);
}
.vg-anim-fadein    { transition-duration: 0.6s; }
.vg-anim-fadeinup  { transform: translateY(28px); transition-duration: 0.65s; }
.vg-anim-fadeinleft{ transform: translateX(-28px); transition-duration: 0.65s; }

.vg-anim-fadein.vg-visible,
.vg-anim-fadeinup.vg-visible,
.vg-anim-fadeinleft.vg-visible {
    opacity: 1;
    transform: none;
}

/* ════════════════════════════════
   LIGHTBOX OVERRIDE
════════════════════════════════ */
.lb-dataContainer {
    position: absolute;
    top: -2rem;
    right: 2rem;
}
.lb-nav a.lb-next,
.lb-nav a.lb-prev { opacity: 1 !important; }

/* ════════════════════════════════
   MOBILE ≤ 768px
════════════════════════════════ */
@media (max-width: 768px) {

    /* ── All sections: single uniform mobile padding ── */
    .vg-section { padding: 36px 0; }

    /* ── Container ── */
    .vg-container { padding: 0 16px; }

    /* ── Section head ── */
    .vg-section-head { gap: 12px; margin-bottom: 20px; }
    .vg-heading { font-size: 19px !important; }

    /* ── Tabs ── */
    .vg-tabs-nav  { height: 46px; }
    .vg-tabs-list { height: 46px; }
    .vg-tab       { height: 46px; padding: 0 16px; font-size: 13px; }
    .vg-tabs-sticky           { top: 0; }
    .admin-bar .vg-tabs-sticky{ top: 46px; }

    /* ── Responsive image toggle ──
       On mobile: show .vg-mob-only, hide .vg-desk-only          */
    .vg-mob-only  { display: block !important; }
    .vg-desk-only { display: none  !important; }

    /* ── Carousel images ── */
    .vg-gallery-img { height: 220px; }

    /* ── Highlights ── */
    .vg-highlights-img-wrap { margin-bottom: 24px; }
    .vg-highlights-img      { max-height: 260px; }
    .vg-location-advantage  { padding: 20px 18px; border-left-width: 4px; }
    .vg-location-advantage ul { grid-template-columns: 1fr; gap: 0; }
    .vg-location-advantage li { font-size: 0.93rem; padding: 8px 0; }

    /* ── Testimonials ── */
    .vg-talk-main-heading { font-size: 24px !important; }
    .vg-talk-big-label    { font-size: 5rem; left: 0; }
    .vg-talk-bar          { min-height: 80px; }
    .vg-testimonial-card  { padding: 24px 18px; }

    /* ── Bank logos ── */
    .vg-banks-wrap { gap: 12px; }
    .vg-bank-logo  { height: 36px; }
}

/* ════════════════════════════════
   MOBILE ≤ 480px
════════════════════════════════ */
@media (max-width: 480px) {
    .vg-heading { font-size: 17px !important; }
    .vg-gallery-img { height: 200px; }
    .vg-talk-big-label { font-size: 3.8rem; opacity: .06; }
    .vg-tab { padding: 0 12px; font-size: 12px; }
    .vg-banks-wrap { justify-content: center; }
    .vg-bank-logo-wrap { padding: 10px 14px; }
    .vg-location-advantage { padding: 20px 16px; }

    /* Highlights image max-height on small phones */
    .vg-highlights-img { max-height: 200px; }
}

/* ════════════════════════════════
   TABLET 769px – 1024px
════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* All sections keep same 60px padding (inherited from .vg-section) */
    .vg-gallery-img       { height: 260px; }
    .vg-talk-main-heading { font-size: 28px !important; }
    .vg-location-advantage ul { grid-template-columns: 1fr 1fr; }
    .vg-container { padding: 0 20px; }
}

/* ════════════════════════════════
   LARGE DESKTOP ≥ 1366px
════════════════════════════════ */
@media (min-width: 1366px) {
    .vg-heading      { font-size: 24px !important; }
    .vg-gallery-img  { height: 380px; }
    .vg-talk-main-heading { font-size: 42px !important; }
    .vg-highlights-img { max-height: 600px; }
}
