/*!
Theme Name: teamvish
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.2.0
Tested up to: 5.4
Requires PHP: 5.6
*/
:root {
    --primary: #FFDE00;
    --secondary: #54595F;
    --accent: #61CE70;
    --text: #7A7A7A;
    --dark: #282A2C;
    --white: #FFFFFF;
    --gold-start: #FFDE00;
    --gold-end: #DF9C06;
    --font-lato: "Lato", Sans-serif;
    --font-inter: "Inter", Sans-serif;
    --font-arial: "Arial", Sans-serif;
    --gradient-gold: linear-gradient(90deg, #FFDE00 0%, #DF9C06 43%);
    --gradient-strip: linear-gradient(90deg, #FFDE00 0%, #DF9C06 75%);
    --gradient-why: linear-gradient(90deg, #FFDD01 0%, #DF9C06 49%);
}

* {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   LENIS SMOOTH SCROLL SETUP
   ========================================= */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
    /* Forces Lenis to take control over CSS */
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
    /* Improves performance while scrolling over maps/videos */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-lato);
    color: #454545;
    line-height: 1.5;
    overflow-x: hidden;
    background: #fff;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-lato);
    color: var(--dark);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive Max Widths */
@media (min-width: 1600px) {

    .container,
    .hero-content,
    .intro-grid,
    .stats-grid,
    .why-us-wrapper {
        max-width: 1600px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 767px;
        padding: 0 15px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-content {
        max-width: calc(100% - 60px);
    }
}

@media (min-width: 1200px) {
    .hero-content {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .hero-content {
        max-width: 1320px;
    }
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    line-height: 15px;
}

.btn-gradient {
    background-image: var(--gradient-gold);
    color: #000;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #DF9C06;
    background-image: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-image: var(--gradient-gold) 1;
    font-weight: 600;
    color: #DF9C06;
}

.btn-outline:hover {
    background: var(--gradient-gold);
    -webkit-text-fill-color: #000;
    color: #000;
}

.btn-outline.dark-btn {
    border: 1px solid #DF9C06;
    border-image: var(--gradient-gold) 1;
}

.btn-black {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-black:hover {
    background: #333;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    /* border-bottom: 1px solid rgba(255,255,255,0.15); */
    transition: background 0.3s;
}

.site-header.is-sticky {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.site-header.is-sticky .top-bar {
    background: gray;
}

.header-inner {
    display: flex;
    flex-direction: column;
}


.top-bar {
    border-bottom: 1px solid #7a7a7a;
    padding: 10px 15px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
}

.social-list {
    display: flex;
    gap: 15px;
}

.social-list a {
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 400;
}

.main-bar {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo-col img {
    max-height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    line-height: 22.5px;
    /* height: 80px; */
    /* display: inline-block; */
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-header {
    display: none;
}

.mobile-toggle svg {
    width: 40px;
}

.top-bar-content .social-list svg {
    width: 20px;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 80px, 0);
        /* Starts 40px down */
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-80px, 0, 0);
        /* Starts 40px to the left */
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- Utility Classes --- */

/* 1. Initial State (Hidden) */
.fadeinup,
.fadeinleft {
    opacity: 0;
    /* Crucial: Hides element until script runs */
    will-change: opacity, transform;
    /* Performance optimization */
}

/* 2. Active State (Triggered by JS) */
.fadeinup.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fadeinleft.animate {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@media (max-width: 1024px) {
    .logo-col img {
        max-height: 45px;
    }

    .cta-col {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .cta-col .btn {
        font-size: 11px;
        padding: 8px;
    }

    .mobile-toggle svg {
        width: 30px;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        background: #0000009c;
        border-radius: 3px;
        line-height: 15px;
    }

    .menu-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 350px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        transition: 0.4s;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .menu-container.active {
        left: 0;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-header img {
        height: 40px;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #000;
        padding: 8px;
        width: 45px;
        border-radius: 3px;
        background-color: #000;
        color: #fff;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li {
        padding: 15px 0;
    }

    .nav-links a {
        color: #000;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    .main-bar {
        height: 65px;
    }

    .top-bar-content {
        justify-content: flex-end;
    }

}

@media (max-width: 767px) {
    .main-bar {
        padding: 10px;
        height: 48px;
    }

    .logo-col img {
        max-height: 26px;
    }

    .cta-col .btn {
        font-size: 9px;
        padding: 6px;
    }

    .mobile-toggle svg {
        width: 30px;
    }

    .social-list a {
        font-size: 9px;
    }
}

@media (max-width: 500px) {
    .main-bar {
        padding: 10px;
        height: 48px;
    }

    .logo-col img {
        max-height: 26px;
    }

    .cta-col .btn {
        font-size: 9px;
        padding: 6px;
    }

    .top-bar-content {
        justify-content: right;
    }

    .top-bar-content .social-list svg {
        width: 13px;
    }

    .mobile-toggle svg {
        width: 30px;
    }

    .social-list a {
        font-size: 9px;
    }
}

/* =========================================
   4. FOOTER
   ========================================= */
.footer-cta {
    /* Path relative to theme root style.css */
    background-image: url('assets/images/bg-thinking-selling-01.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    background: #e2a206c7;
}

.cta-content h2 {
    font-size: 25px;
    color: #000;
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-content p {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

.main-footer {
    background: #282A2C;
    padding: 80px 0 50px;
    color: #eee;
    margin-top: -60px;
    padding-top: 120px;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.f-col {
    flex: 1;
    min-width: 250px;
    overflow: hidden;
    max-width: 100%;
}

.f-col h3 {
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid #DF9C06;
    border-top: 1px solid #DF9C06;
    padding: 10px 10px 10px 0;
    display: inline-block;
    width: 50%;
    margin-bottom: 20px;
    font-weight: 700;
}

.f-col ul li {
    padding: 5px 0;
    overflow: hidden;
    opacity: 1;
    color: #fff;
}

.f-col ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    opacity: 1;
}

.contact-details li {
    display: flex;
    gap: 5px;
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-details li span {
    display: flex;
    gap: 5px;
    opacity: .8;
}

.footer-logo {
    margin-top: 20px;
    width: 80%;
}

.sub-footer {
    background: #6B6B6A;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
}

.sub-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sub-socials a {
    display: flex;
    gap: 3px;
    align-items: center;
}

.sub-socials i {
    color: #fff;
    font-size: 14px;
}

.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark see-through background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show State (Added by JS) */
.custom-popup-overlay.show-popup {
    opacity: 1;
    visibility: visible;
}

/* The White Modal Box */
.custom-popup-container {
    background: #fff;
    width: 90%;
    max-width: 600px;
    /* Adjust width as needed */
    max-height: 95vh;
    padding: 19px 40px;
    position: relative;
    overflow-y: auto;
    /* Scroll inside popup if form is long */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overscroll-behavior: contain;
}

/* .no-scroll removed */

/* Animation: Slide up slightly when opening */
.custom-popup-overlay.show-popup .custom-popup-container {
    transform: translateY(0);
}

.custom-popup-container .forminator-row {
    margin-bottom: 15px !important;
}

/* Close Button (X) */
.custom-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.custom-popup-close:hover {
    color: #000;
}

/* Header Styling */
.custom-popup-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid #D4AF37;
    /* Gold underline */
    display: inline-block;
    padding-bottom: 5px;
}

.custom-popup-header {
    text-align: center;
}

/* Forminator Tweaks (Optional) */
.custom-popup-body .forminator-ui {
    padding: 0 !important;
    /* Remove extra padding if forminator adds it */
}

/* =========================================
   SEARCH FORM STYLES
   ========================================= */

.search-form {
    position: relative;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #DF9C06;
    border-radius: 8px;
}

/* The Label (Screen reader text usually) */
.search-form label {
    width: 100%;
    margin-bottom: 0;
}

/* The Input Field */
.search-field {
    width: 100%;
    padding: 15px 20px 15px 20px;
    /* Right padding makes room for the button */
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background-color: #fff;
    line-height: 1;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: #D4AF37;
    /* Team Vish Gold */
    outline: none;
}

/* The Submit Button (Magnifying Glass) */
.search-submit {
    /* position: absolute; */
    right: 5px;
    top: 50%;
    /* transform: translateY(-50%); */
    background-color: transparent;
    border: none;
    color: #333;
    border-radius: 0 5px 5px 0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    background: #DF9C06;
    line-height: 1.5;
}

.search-submit:hover {
    color: #000;
}

.fb-box iframe {
    width: 480px;
    border: none;
    visibility: visible;
    height: 279px;
}

/* Wrapper */
.vish-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    /* Matches your JSON settings */
}

.vish-custom-form .form-group {
    margin-bottom: 14px;
}

.form-col {
    display: flex;
    /* justify-content: space-between; */
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.group-col .form-group {
    width: 49%;
    display: inline-block;
}

/* Labels */
.vish-custom-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    color: #333;
    font-family: 'Lato';
}

.vish-custom-form .req {
    color: #d93025;
    margin-left: 3px;
}

/* Inputs */
.vish-custom-form input[type="text"],
.vish-custom-form input[type="email"],
.vish-custom-form input[type="tel"],
.vish-custom-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Lato';
}

.vish-custom-form input:focus,
.vish-custom-form textarea:focus {
    border-color: #df9c06;
    /* Gold focus */
    outline: none;
}

.vish-custom-form textarea {
    height: 100px;
    resize: vertical;
}

/* Custom Phone Input Styling */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.phone-input-wrapper .flag-icon {
    display: flex;
    align-items: center;
    padding: 0 10px 0 5px;
    background: #f9f9f9;
    border-right: 1px solid #ccc;
    font-size: 14px;
    color: #555;
    height: 40px;
    /* Match input height */
    white-space: nowrap;
    gap: 2px;
    /* padding: 0 8px; */
    border-radius: 4px 0 0 4px;
}

.phone-input-wrapper .flag-icon img {
    /* margin-right: 5px; */
    display: block;
    width: 16px;
    height: 12px;
}

.phone-input-wrapper input {
    border: none !important;
    /* Remove inner border */
    padding-left: 15px;
}

/* Radio Buttons Custom Design */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 16px;
    user-select: none;
}

/* Hide default radio */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Circle */
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 50%;
}

/* Hover */
.radio-container:hover input~.checkmark {
    background-color: #f0f0f0;
}

/* Checked state */
.radio-container input:checked~.checkmark {
    border-color: #df9c06;
}

/* Inner dot */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #df9c06;
    /* Gold Dot */
}

/* Submit Button */
.btn-gold-submit {
    background-color: #df9c06;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-gold-submit:hover {
    background-color: #c48905;
}

/* Success/Error Message */
#form-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
}

.msg-success {
    color: green;
}

.msg-error {
    color: red;
}

@media (max-width: 767px) {
    .footer-cols {
        flex-direction: column;
        gap: 30px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .footer-cta .btn-black {
        font-size: 10px;
        padding: 8px 16px;
    }

    .footer-logo {
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .sub-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .f-col h3 {}
}

@media (max-width: 500px) {
    .menu-container {
        width: 300px;
    }

    .footer-logo {
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 385px) {
    .fb-box iframe {
        width: 300px;
    }
}

/* =========================================
   IMPORTED FROM HOME.CSS
   ========================================= */

/* =========================================
   1. HERO SECTION & VIDEO OPTIMIZATION
   ========================================= */

.hero-section {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #fff;
}

/* Optimized Video Background */
.video-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #000;
    /* Path relative to assets/css/home.css */
    background-image: url('assets/images/video-poster.jpg');
    background-size: cover;
    background-position: center;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* JS will add this class when video starts playing */
.video-background video.is-playing {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    color: #ffffff;
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 10px;
}

.animated-headline {
    font-size: 45px;
    font-weight: 600;
    line-height: 1.2;
}

/* 1. Define the Bouncy Slide DOWN Animation */
@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        /* Start above */
    }

    70% {
        opacity: 1;
        transform: translateY(5px);
        /* Overshoot: Go slightly down past the target */
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        /* Settle in correct position */
    }
}

/* 2. Wrapper */
.headline-dynamic-wrapper {
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

/* 3. Base Element */
.dynamic-text {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    opacity: 0;
}

/* 4. Active Trigger */
.dynamic-text.active {
    /* Increased duration slightly to 0.6s to make the bounce visible */
    animation: slideDownBounce 0.6s ease-out forwards;
}

.hero-buttons {
    margin-top: 80px;
    display: flex;
    gap: 20px;
    justify-content: left;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 24px;
    }

    .animated-headline {
        font-size: 24px;
    }

    .hero-buttons {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 360px;
    }

    .hero-title,
    .dynamic-text {
        font-size: 25px;
    }

    .animated-headline {
        min-height: auto;
    }

    .headline-dynamic-wrapper {
        margin-top: 0;
        height: auto;
    }

    .dynamic-text {
        position: relative;
        opacity: 1;
        transform: none;
        display: none;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .dynamic-text.active {
        display: block;
    }

    .hero-buttons {
        margin-top: 20px;
    }

    .hero-buttons .btn {
        font-size: 10px;
        padding: 8px;
    }
}

/* =========================================
   2. SECTIONS
   ========================================= */
.gradient-separator {
    height: 7px;
    background: var(--gradient-strip);
    margin-top: -2px;
    position: relative;
    z-index: 3;
}

/* Intro */
.intro-section {

    padding-top: 80px;
    padding-bottom: 80px;
}

.intro-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;
}

.intro-content {
    flex: 1;
}

.intro-content h1 {
    font-size: 30px;
    margin-bottom: 24px;
    color: #282A2C;
}

.gold-border-box {
    border-left: 8px solid #E3A507;
    padding-left: 10px;
    margin-bottom: 24px;
}

.highlight {
    font-size: 19px;
    font-weight: 500;
    color: #454545;
    margin: 0;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    max-width: 790px;
}

/* For Sale */
.for-sale-section {
    position: relative;
    padding: 15px 15px;
    background-image: url('assets/images/bg-salespeople.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: 0% 0%;
    color: #fff;
    text-align: center;
    margin-top: 40px;
}

@media only screen and (hover: none) and (pointer: coarse),
(max-width: 768px) {
    .for-sale-section {
        background-attachment: scroll;
        /* Image scrolls with the page */
    }
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.32;
}

.relative-z {
    position: relative;
    z-index: 1;
}

.text-white h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    margin: 30px 0;
    padding: 10px 0;
}

.no-properties-found {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 5px;
    margin: 30px auto;
    display: inline-block;
}

.no-properties-found i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 30px;
}

/* Sold Section */
.sold-section {
    padding: 50px 15px 30px;
}

.section-header.text-dark h2 {
    font-size: 30px;
    color: #454545;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 10px;
}

.why-us-content .section-header.text-dark h2 {

    margin-bottom: 10px;
}

.swiper {
    padding-bottom: 20px !important;
}

.property-card-sold {
    margin: 0;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    background: #282a2c;
}

.card-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-details {
    background: #282A2C;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.address-main {
    font-size: 18px;
    font-weight: 400;
    font-family: "Lato";
    /* margin-bottom: 5px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-sub {
    font-size: 14px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-button-next,
.swiper-button-prev {
    color: #282A2C;
}

/* Stats */
.stats-section {
    padding: 10px 15px 50px;
    text-align: center;
}

.stats-section .content {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.stats-section h2 {
    font-size: 50px;
    font-weight: 400;
    color: #545454;
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 700px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 27%;
    min-width: 200px;
}

.stat-title {
    color: #5C5C5C;
    font-size: 19px;
    /* text-transform: uppercase; */
    font-family: "Inter", sans-serif;
    font-weight: 400;
    order: 2;
    line-height: 3.5;
}

.stat-number-box {
    font-size: 30px;
    font-weight: 600;
    color: #393939;
    font-family: "Arial", sans-serif;
    order: 1;
    line-height: 1;
}

/* Awards */
.awards-section {
    background-image: url('assets/images/texture06.webp');
    background-position: center;
    background-repeat: repeat;
    padding: 60px 0;
    text-align: center;
    margin-top: 40px;
}

/* 1. Define the Keyframes */
@keyframes rotateInUpLeft {
    0% {
        transform-origin: left bottom;
        transform: rotate(45deg) translateY(20px);
        /* Start tilted and slightly down */
        opacity: 0;
    }

    100% {
        transform-origin: left bottom;
        transform: rotate(0) translateY(0);
        /* End straight and in place */
        opacity: 1;
    }
}

.awards-section h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 40px;
}

.awards-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1px;
}

.award-item {
    width: 40%;
    max-width: 200px;

    /* 3. Add the Animation here */
    opacity: 0;
    /* Ideally hide it before animation starts */
}

/* 2. Active State (Triggers Animation) */
.award-item.visible {
    animation: rotateInUpLeft 0.8s ease-out forwards;
}

.award-item img {
    width: 78%;
    margin: 0 auto;
}

/* Why Choose Us */
.why-us-section {
    background: var(--gradient-why);
}

.why-us-wrapper {
    display: flex;
    margin-top: 0;
}

.why-us-content {
    flex: 1;
    padding: 20px 15px 50px;
}

.why-us-bg-col {
    flex: 1;
    background-image: url('assets/images/why-choose-us-01.webp');
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.section-header.text-left h2 {
    font-size: 30px;
    color: #000;
    text-align: left;
}

.why-us-wrapper .section-header.text-left h2 {
    margin-bottom: 10px;
}

.highlight-box.gold-border {
    border-left: 8px solid #E3A507;
    padding-left: 10px;
    margin-bottom: 30px;
}

.highlight-box p {
    font-size: 19px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

/* Accordion */
.accordion {
    margin-top: 30px;
}

.acc-item {
    margin-bottom: 10px;
}

.acc-button {
    width: 100%;
    text-align: left;
    background: rgba(2, 1, 1, 0.07);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-family: "Lato", sans-serif;
    line-height: 24px;
    gap: 26px;
    color: #000;
}

.acc-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.acc-panel {
    display: none;
    opacity: 0;
    padding: 20px 70px 20px 70px;
    transform: translateY(-40px);
    transition: opacity 0.2s ease, transform 0.4s ease;
}

/* .acc-item.active .acc-panel {  } */
.acc-item.active .acc-button {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.acc-item.active .acc-button svg {
    rotate: 180deg;
}

.show {
    display: block;
    opacity: 1;
    transform: translateY(0px);
}

/* Reviews */
.reviews-section {
    padding: 60px 15px;
    background-image: url('assets/images/texture06.webp');
    background-position: center;
    background-repeat: repeat;
    text-align: center;
}

.reviews-section h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 30px;
}

.review-widget-container {
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.sold-section .sold-carousel {
    margin: 0 64px;
    position: initial;
}

/* =========================================
   3. RESPONSIVE (HOME SPECIFIC)
   ========================================= */

@media (min-width: 1600px) {
    .intro-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        margin-top: -165px;
    }

    .intro-grid,
    .why-us-wrapper {
        gap: 20px;
    }

    .intro-content h1 {
        font-size: 23px;
    }

    .highlight {
        font-size: 14px;
    }

    p {
        font-size: 12px;
    }

    .award-item {
        width: 14%;
    }

    .intro-content,
    .why-us-content {
        padding-right: 0;
    }

    .intro-image img {
        width: 100%;
    }

    .why-us-bg-col {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-content {
        margin-top: 120px;
    }

    .intro-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .intro-grid,
    .why-us-wrapper {
        flex-direction: column;
    }

    .award-item img {
        margin-bottom: 20px;
    }

    .stats-section h2 {
        font-size: 24px;
    }

    .stats-grid {
        flex-direction: row;
        gap: 10px;
    }

    .stat-item {
        margin-bottom: 20px;
        min-width: auto;
    }

    .stat-title {
        font-size: 9px;
    }

    .award-item {
        width: 45%;
    }

    .why-us-bg-col {
        order: -1;
        min-height: 250px;
    }

    .highlight-box p {
        font-size: 12px;
    }
}

.property-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-view-block {
    display: none;
}

.desktop-view-block {
    display: block;
}

@media (max-width: 991px) {
    .property-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    .desktop-view-block {
        display: none;
    }

    .mobile-view-block {
        display: block;
    }

    .property-carousel-sales {
        padding-bottom: 40px;
    }
}

/* --- EXACT PROVIDED CSS FOR CARDS --- */
.property-cards-section {
    color: #fff;
}

.latest-properties-heading,
.for-sale-section .property-card__title,
.for-sale-section .property-card__subtitle,
.for-sale-section .property-card__stats span {
    color: #fff;
}

.property-card {
    /* margin: 10px; */
    background: #282a2c;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.2);
    padding: 14px;
    padding-bottom: 0;
    height: 100%;
    /* Added to ensure grid height works */
    display: flex;
    /* Added for layout */
    flex-direction: column;
    /* Added for layout */
}

/* Image Wrapper handling */
.property-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Optional: blur the low-res background slightly for a smoother look */
    /* filter: blur(0px); transition: filter 0.3s; */
}

/* 2. The High-Res Image starts invisible */
.for-sale-section .property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade in */
    display: block;
}

/* 3. JS adds this class when High-Res is ready */
.for-sale-section .property-card__image.loaded {
    opacity: 1;
}

.sold-section .property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade in */
    display: block;
}

/* 3. JS adds this class when High-Res is ready */
.sold-section .property-card__image.loaded {
    opacity: 1;
}

.for-sale-section .property-card .property-card__info {
    /* padding: 0 10px; */
    flex-grow: 1;
    /* Added to push footer down */
    display: flex;
    /* Added */
    flex-direction: column;
    /* Added */
    justify-content: space-between;
    /* Added */
    margin-top: 10px;
    margin-bottom: 14px;
    gap: 15px;
    padding: 0 5px;
}

.for-sale-section .property-card__address {
    display: flex;
    justify-content: space-between;
    /* margin-top: 10px; */
}

.for-sale-section .property-card__address h5 {
    font-family: "Lato", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #FFF;
    margin: 0;
    /* Reset margins usually added by themes */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Title is address, Subtitle is suburb */
.for-sale-section .property-card__title {
    margin-right: 5px;
}

.for-sale-section .property-card__statsprice {
    display: flex;
    justify-content: space-between;
    /* margin-top: 10px; */
    align-items: flex-end;
    /* margin-bottom: 14px; */
    /* Added spacing at bottom */
    gap: 10px;
}

.for-sale-section .property-card__statsprice h5 {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #FFF;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 19px;
}

.for-sale-section .property-card__stats {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.for-sale-section .property-card__stats span {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #FFF;
    padding-left: 5px;
    display: flex;
    gap: .15rem;
    align-items: flex-end;
    line-height: 18px;
}

.for-sale-section .property-card__stats span:first-child {
    padding-left: 0px;
}

.elementor-icon-list-icon {
    display: inline-block;
    fill: #fff;
    width: 1em;
    /* Ensure SVG has size */
    height: 1em;
}

.item-on-desk {
    display: block;
}

.item-on-mobile {
    display: none;
}

/* Swiper Controls Override */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.sold-section .swiper-button-next {
    right: 0;
    color: #282A2C;
}

.sold-section .swiper-button-prev {
    left: 0;
    color: #282A2C;
}


/* --- PROVIDED MEDIA QUERIES --- */
@media (max-width: 1024px) {

    .property-card {
        /* padding-bottom: 14px !important; */
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 13px;
    }

    .for-sale-section .property-card__address h5 {
        font-size: 13px;
        margin: 0;
    }

    .for-sale-section .property-card__stats span {
        font-size: 11px;
        line-height: 11px;
    }

    /* empty rule removed */

    .for-sale-section .property-card__statsprice h5 {
        font-size: 11px;
    }
}

@media (max-width: 786px) {

    .property-card {
        padding-bottom: 14px !important;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }

    .for-sale-section .property-card__address h5 {
        font-size: 13px;
        margin: 0;
    }

    .for-sale-section .property-card__stats span {
        font-size: 11px;
        line-height: 11px;
    }

    .for-sale-section .property-card__statsprice h5 {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .intro-section {
        padding-left: 0;
        padding-right: 0;
    }

    .intro-content {
        padding: 0 15px;
    }

    .for-sale-section {
        padding-left: 0;
        padding-right: 0;
    }

    .for-sale-section .property-card {
        margin: 15px;
    }

    .for-sale-section .swiper-button-next {
        right: -8px;
    }

    .for-sale-section .swiper-button-prev {
        left: -8px;
    }

    .for-sale-section .swiper-pagination {
        display: none;
    }

    .for-sale-section .view-more-wrap {
        margin-top: 30px;
    }

    .for-sale-section .view-more-wrap .btn {
        font-size: 10px;
        padding: 6px 12px;
    }

    .sold-section {
        padding: 50px 25px 30px;
        position: relative;
    }

    .sold-section .sold-carousel {
        margin: 0px 22px;
        position: initial;
    }

    .sold-section .swiper-button-next {
        right: 0;
        color: #282A2C;
    }

    .sold-section .swiper-button-prev {
        left: 0;
        color: #282A2C;
    }

    .sold-section .address-main {
        font-size: 14px;
    }

    .sold-section .address-sub {
        font-size: 11px;
    }

    .sold-section .view-more-wrap {
        margin-top: 30px;
    }

    .sold-section .view-more-wrap .btn {
        font-size: 10px;
        padding: 6px 12px;
    }

    .stats-section {
        padding: 10px 15px 0;
    }

    .stats-grid {
        width: 100%;
    }

    .stat-number-box {
        font-size: 16px;
    }

    .why-us-content {
        padding: 20px 15px;
    }

    .why-us-section .container {
        padding: 0;
    }

    .acc-panel {
        padding: 0 8px 0 70px;
    }

    .acc-panel p {
        font-size: 16px;
        margin: 0;
    }

    .acc-button {
        font-size: 14px;
        gap: 15px;
    }

    .item-on-desk {
        display: none;
    }

    .item-on-mobile {
        display: block;
        margin: 0 auto;
        width: 45%;
    }

    .item-center {
        margin: 0 auto;
    }

    .why-us-section {
        margin-top: 64px;
    }
}

@media (max-width: 500px) {
    .intro-content h1 {
        font-size: 12px;
    }

    .highlight {
        font-size: 9px;
    }

    p {
        font-size: 9px;
    }

    .text-white h2 {
        margin: 10px 0;
        padding: 0;
    }

    .for-sale-section .view-more-wrap {
        margin: 5px 0;
    }

    .stats-section h2 {
        margin-bottom: 30px;
    }

    .sold-section {
        padding: 50px 15px 10px;
        position: relative;
    }

    .sold-section .address-main {
        font-size: 12px;
    }

    .sold-section .address-sub {
        font-size: 9px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 11px;
    }

    .for-sale-section .property-card__address h5 {
        font-size: 11px;
        margin: 0;
    }

    .for-sale-section .property-card__stats span {
        font-size: 9px;
    }

    .for-sale-section .property-card__statsprice h5 {
        font-size: 9px;
    }

    .awards-section {
        padding: 40px 0;
    }

    .awards-flex {
        margin-top: 40px;
        justify-content: space-around;
    }

    .award-item {
        width: 35%;
    }

    .why-us-section .section-header.text-left h2 {
        margin-bottom: 20px;
        margin-top: 0;
    }

    .reviews-section {
        padding: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .reviews-section h2 {
        text-align: center;
    }

    .review-widget-container {
        padding: 0;

    }

    .item-on-desk {
        display: none;
    }

    .item-on-mobile {
        display: block;
        margin: 0 auto;
        width: 45%;
    }

    .item-center {
        margin: 0 auto;
    }

    .custom-popup-container {
        padding: 19px 20px;
    }

    .form-col {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* empty media query removed */