/* =========================================================
   NAVEENA INTERIOR SOLUTIONS — SECTION FLOW & FIXES
   Loaded after main.css. Contains only corrections and
   additions; nothing here overwrites the original theme
   files, so the base template stays upgradeable.
   ========================================================= */

:root {
    --nv-gold: #e7b74a;
    --nv-ink: #1b284d;
    --nv-dark: #1c1c1d;
    --nv-cream: #faf7f2;
    --nv-whatsapp: #25d366;
    --nv-section-y: 130px;
    --nv-header-h: 100px;
    --nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   1. CONSISTENT VERTICAL RHYTHM
   Every section used to carry its own ad-hoc pt-/pb- class
   (150/130/110/100/60), which made the page feel uneven.
   One shared scale now drives the whole flow.
   --------------------------------------------------------- */
.nv-section {
    padding-top: var(--nv-section-y);
    padding-bottom: var(--nv-section-y);
    position: relative;
}

/* The about section paints a full-bleed background image,
   so it keeps a slightly taller frame. */
.about-section.nv-section {
    padding-top: calc(var(--nv-section-y) + 20px);
    padding-bottom: calc(var(--nv-section-y) + 20px);
}

/* Counter sits directly under the gold services block and
   leads into projects — tighten it so the three read as one
   continuous movement instead of three separate slabs. */
.nv-counter-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--nv-cream);
}

.nv-projects {
    background-color: #ffffff;
}

.nv-gallery {
    background-color: var(--nv-cream) !important;
}

/* Section heading wrapper had a hard 65px top padding that
   stacked on top of the section padding. */
.nv-section .section-heading-wrap {
    padding-top: 0;
    margin-bottom: 64px;
}

.nv-section .section-heading-wrap .shape {
    top: -34px;
    opacity: .5;
}

/* Kill the horizontal overflow caused by `row w-100 ml-0`
   (a Bootstrap 4 class that does not exist in BS5) — the
   negative row gutters plus width:100% pushed the grid
   past the viewport and produced a sideways scrollbar. */
/* Note: the overflow guard stays on <body> only — putting it on
   #antra-smooth-wrapper / #antra-smooth-content would create a
   nested scroll container and break GSAP ScrollSmoother. */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

#antra-smooth-content {
    max-width: 100%;
}

.row {
    --bs-gutter-x: 1.5rem;
}

/* ---------------------------------------------------------
   2. SECTION TRANSITIONS
   Soft seams so one block melts into the next rather than
   cutting hard.
   --------------------------------------------------------- */
.service-section.nv-section::after,
.nv-counter-section::after,
.nv-projects::after,
.nv-gallery::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    z-index: 0;
}

.service-section.nv-section::after {
    background: linear-gradient(180deg, rgba(231, 183, 74, 0) 0%, rgba(250, 247, 242, .85) 100%);
}

.nv-counter-section::after {
    background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.nv-projects::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(250, 247, 242, 1) 100%);
}

.nv-gallery::after {
    background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(28, 28, 29, .12) 100%);
}

.nv-section > .container,
.nv-section > .container-2,
.nv-section > .container-fluid {
    position: relative;
    z-index: 2;
}

/* ---------------------------------------------------------
   3. SCROLL-ANCHOR OFFSET
   The header is fixed, so anchor targets used to land
   underneath it.
   --------------------------------------------------------- */
section[id],
#banner {
    scroll-margin-top: var(--nv-header-h);
}

/* ---------------------------------------------------------
   4. HERO
   --------------------------------------------------------- */
/* Staged hero entrance. Keyed off .slider-ready (added by
   slider.js once the preloader finishes) so the copy animates
   in as the hero becomes visible, not while it is still hidden. */
.slider-content .nv-hero-el {
    opacity: 0;
    transform: translateY(26px);
}

.slider-ready .slider-content .nv-hero-el {
    animation: nvHeroIn 1.1s var(--nv-ease) forwards;
}

.slider-ready .slider-content .sub-heading.nv-hero-el {
    animation-delay: .15s;
}

.slider-ready .slider-content .section-title.nv-hero-el {
    animation-delay: .38s;
}

.slider-ready .slider-content .nv-hero-btn {
    animation-delay: .68s;
}

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

.nv-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
}

.slider-ready .nv-scroll-cue {
    animation: nvCueIn 1s var(--nv-ease) 1.1s forwards;
}

@keyframes nvCueIn {
    to {
        opacity: 1;
    }
}

.nv-scroll-cue-line {
    width: 1px;
    height: 54px;
    background: rgba(255, 255, 255, .35);
    position: relative;
    overflow: hidden;
}

.nv-scroll-cue-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--nv-gold);
    transform: translateY(-100%);
    animation: nvCueRun 2.2s ease-in-out infinite;
}

@keyframes nvCueRun {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

.nv-scroll-cue-text {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    transition: color .3s ease;
}

.nv-scroll-cue:hover .nv-scroll-cue-text {
    color: var(--nv-gold);
}

@media only screen and (max-width: 767px) {
    .nv-scroll-cue {
        display: none;
    }
}

/* ---------------------------------------------------------
   5. COUNTER — the class had no styling at all in main.css
   --------------------------------------------------------- */
.counter-item {
    text-align: center;
    padding: 34px 20px;
    border-right: 1px solid rgba(27, 40, 77, .10);
    height: 100%;
    transition: transform .45s var(--nv-ease);
}

.counter-item:hover {
    transform: translateY(-6px);
}

.nv-counter-section .col-lg-3:last-child .counter-item {
    border-right: 0;
}

.counter-item .title {
    font-family: var(--tl-ff-heading), serif;
    font-size: 60px;
    line-height: 1;
    color: var(--nv-ink);
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.counter-item .title .icon {
    color: var(--nv-gold);
}

.counter-item .sub-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--nv-ink);
    margin-bottom: 10px;
    letter-spacing: .01em;
}

.counter-item p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--tl-color-grey-1);
    margin-bottom: 0;
}

@media only screen and (max-width: 992px) {
    .counter-item {
        border-right: 0;
        border-bottom: 1px solid rgba(27, 40, 77, .10);
        padding: 26px 16px;
    }

    .counter-item .title {
        font-size: 46px;
    }
}

/* ---------------------------------------------------------
   6. PROJECTS — .project-section-inner had no styling
   --------------------------------------------------------- */
.project-section-inner .project-item {
    height: 100%;
}

.project-section-inner .project-img {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.project-section-inner .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.1s var(--nv-ease);
}

.project-section-inner .project-item:hover .project-img img {
    transform: scale(1.06);
}

.project-section-inner .project-img ul {
    position: absolute;
    left: 20px;
    top: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 2;
}

.project-section-inner .project-img ul li a {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(255, 255, 255, .92);
    color: var(--nv-ink);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 100px;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
}

.project-section-inner .project-img ul li a:hover {
    background: var(--nv-gold);
    color: #fff;
}

.project-section-inner .project-content {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-section-inner .project-content .title {
    font-size: 26px;
    margin-bottom: 0;
    line-height: 1.25;
}

.project-section-inner .project-content .title a {
    color: var(--nv-ink);
    text-decoration: none;
    transition: color .3s ease;
}

.project-section-inner .project-content .title a:hover {
    color: var(--nv-gold);
}

.project-section-inner .project-content span {
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--tl-color-grey-2);
}

@media only screen and (max-width: 767px) {
    .project-section-inner .project-img img {
        /*! height: 280px; */
    }
}

/* ---------------------------------------------------------
   7. GALLERY FILTER — buttons existed in the markup with no
   CSS and no JS behind them
   --------------------------------------------------------- */
.gallery-filter-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.gallery-filter-btn {
    border: 1px solid rgba(27, 40, 77, .16);
    background: transparent;
    color: var(--nv-ink);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 11px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: all .35s var(--nv-ease);
    line-height: 1;
}

.gallery-filter-btn:hover {
    border-color: var(--nv-gold);
    color: var(--nv-gold);
}

.gallery-filter-btn.active {
    background: var(--nv-gold);
    border-color: var(--nv-gold);
    color: #fff;
}

.gallery-grid-item {
    transition: opacity .45s ease, transform .45s var(--nv-ease);
}

.gallery-grid-item.is-hidden {
    display: none;
}

.gallery-grid-item.is-entering {
    opacity: 0;
    transform: translateY(18px);
}

.gallary-inner-item-2 {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallary-inner-item-2 img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--nv-ease);
}

.gallary-inner-item-2:hover img {
    transform: scale(1.07);
}

.gallery-cat-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 14px;
    background: rgba(28, 28, 29, .72);
    color: #fff;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s var(--nv-ease);
    pointer-events: none;
}

.gallary-inner-item-2:hover .gallery-cat-label {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   8. CONTACT FORM
   --------------------------------------------------------- */
.nv-form-messages {
    display: none;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
}

.nv-form-messages.is-visible {
    display: block;
}

.nv-form-messages.is-success {
    background: rgba(37, 211, 102, .12);
    color: #1c7a44;
    border: 1px solid rgba(37, 211, 102, .35);
}

.nv-form-messages.is-error {
    background: rgba(214, 69, 69, .1);
    color: #a33;
    border: 1px solid rgba(214, 69, 69, .3);
}

.form-control.nv-invalid {
    border-color: #d64545 !important;
}

/* ---------------------------------------------------------
   9. WHATSAPP FLOATING BUTTON (left side)
   --------------------------------------------------------- */
.nv-whatsapp-float {
    position: fixed;
    left: 26px;
    bottom: 28px;
    z-index: 9990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--nv-whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .38);
    transition: transform .4s var(--nv-ease), box-shadow .4s ease, opacity .4s ease, visibility .4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.9);
}

.nv-whatsapp-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nv-whatsapp-float i {
    font-size: 27px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.nv-whatsapp-float:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 34px rgba(37, 211, 102, .5);
}

.nv-whatsapp-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--nv-whatsapp);
    opacity: .55;
    animation: nvWaPulse 2.4s ease-out infinite;
    z-index: 1;
}

@keyframes nvWaPulse {
    0% {
        transform: scale(1);
        opacity: .5;
    }
    70% {
        transform: scale(1.75);
        opacity: 0;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.nv-whatsapp-label {
    position: absolute;
    left: 72px;
    white-space: nowrap;
    background: var(--nv-dark);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
    padding: 9px 16px;
    border-radius: 100px;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: all .35s var(--nv-ease);
}

.nv-whatsapp-label::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--nv-dark);
    border-radius: 2px;
}

.nv-whatsapp-float:hover .nv-whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

@media only screen and (max-width: 767px) {
    .nv-whatsapp-float {
        left: 16px;
        bottom: 20px;
        width: 52px;
        height: 52px;
    }

    .nv-whatsapp-float i {
        font-size: 24px;
    }

    .nv-whatsapp-label {
        display: none;
    }
}

/* Keep the back-to-top widget clear of the WhatsApp button */
#scroll-percentage {
    z-index: 9989;
}

/* ---------------------------------------------------------
   10. ACTIVE NAV STATE
   --------------------------------------------------------- */
.header .primary-header-inner .header-menu-wrap ul li a {
    position: relative;
}

.header .primary-header-inner .header-menu-wrap ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--nv-gold);
    transition: width .4s var(--nv-ease);
}

.header .primary-header-inner .header-menu-wrap ul li a:hover::after,
.header .primary-header-inner .header-menu-wrap ul li.active > a::after {
    width: 100%;
}

/* ---------------------------------------------------------
   11. REVEAL SAFETY NET
   The theme hides .fade-top / .slide-anim via GSAP and
   reveals them on scroll. If GSAP fails to load, content
   would stay invisible — this class is added by JS only in
   that fallback case.
   --------------------------------------------------------- */
.nv-no-gsap .fade-top,
.nv-no-gsap .slide-anim,
.nv-no-gsap [data-text-animation] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.nv-no-gsap .slider-section {
    opacity: 1 !important;
    visibility: visible !important;
}

.nv-no-gsap .slider-content .nv-hero-el,
.nv-no-gsap .nv-scroll-cue {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.nv-no-gsap .preloader {
    display: none !important;
}

/* ---------------------------------------------------------
   12. RESPONSIVE RHYTHM
   --------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
    :root {
        --nv-section-y: 100px;
    }
}

@media only screen and (max-width: 992px) {
    :root {
        --nv-section-y: 80px;
        --nv-header-h: 80px;
    }

    .nv-section .section-heading-wrap {
        margin-bottom: 44px;
    }

    .nv-section .section-heading-wrap .col-lg-4 {
        margin-bottom: 14px;
    }

    .service-section.nv-section::after,
    .nv-counter-section::after,
    .nv-projects::after,
    .nv-gallery::after {
        height: 60px;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --nv-section-y: 64px;
    }

    .nv-section .section-heading-wrap {
        margin-bottom: 34px;
    }

    .section-heading .section-title br,
    .section-heading p br {
        display: none;
    }

    .gallery-filter-menu {
        gap: 8px;
        margin-bottom: 30px;
    }

    .gallery-filter-btn {
        padding: 9px 16px;
        font-size: 11px;
    }
}

/* Respect reduced-motion preferences across everything added here */
@media (prefers-reduced-motion: reduce) {
    .nv-whatsapp-ring,
    .nv-scroll-cue-line::after {
        animation: none;
    }

    .nv-scroll-cue,
    .slider-ready .nv-scroll-cue,
    .slider-content .nv-hero-el,
    .slider-ready .slider-content .nv-hero-el {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
