/**
 * Custom styles: header, home index, about page
 * Uses theme variables: --qp-primary, --qp-primary-rgb (set in layout)
 */

/* ========== Animations: scroll-triggered, hover, page load ========== */
.animate-on-load {
    animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-on-load-delay-1 { animation-delay: 0.1s; }
.animate-on-load-delay-2 { animation-delay: 0.2s; }
.animate-on-load-delay-3 { animation-delay: 0.3s; }
.animate-on-load-delay-4 { animation-delay: 0.4s; }

/* Hover: cards */
.card-hover,
.card.card-hover,
.icon-box.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover,
.card.card-hover:hover,
.icon-box.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

/* Hover: blog / property grid images */
.card-img-hover {
    overflow: hidden;
}
.card-img-hover img {
    transition: transform 0.4s ease;
}
.card-img-hover:hover img {
    transform: scale(1.06);
}

/* Hover: buttons */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

/* Hover: icon boxes (property types) */
.icon-box .icon-lg {
    transition: transform 0.3s ease, background-color 0.2s ease;
}
.icon-box:hover .icon-lg {
    transform: scale(1.08);
}

/* Hover: nav links */
.nav-link {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ========== Header (two-tier) ========== */
.header-two-tier {
    z-index: 1020;
}
.header-top-bar {
    background: #0d9488;
}
[data-bs-theme="dark"] .header-top-bar {
    background: #0f766e;
}
.header-top-link:hover {
    color: #fff !important;
    opacity: 1;
}
.header-top-social:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}
/* Remove underlines from header top bar (contact + social) */
.header-top-bar a,
.header-top-bar a:hover,
.header-top-social {
    text-decoration: none !important;
}
/* Remove underlines from main nav links */
.header-two-tier .nav-link,
.header-two-tier .nav-link:hover,
.header-two-tier .nav-link:focus,
.header-two-tier .nav-link.active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
/* Remove underline from scroll-to-top button */
.btn-scroll-top,
.btn-scroll-top:hover,
.btn-scroll-top .btn-scroll-top-icon {
    text-decoration: none !important;
}
.btn-scroll-top .btn-scroll-top-icon::after {
    display: none !important;
}

/* ========== Home index ========== */
.pt-120 {
    padding-top: 120px;
}
.pb-90 {
    padding-bottom: 90px;
}
.pb-70 {
    padding-bottom: 70px;
}
.section-bg-1 {
    background-color: #f8f8f8;
}
.ltn__about-us-area {
    background-color: #fff;
}
.about-us-img-wrap {
    position: relative;
}
.about-us-img-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}
.about-us-img-info {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-us-img-info-2 {
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.about-us-img-info-3 {
    left: 10px;
    right: auto;
    bottom: 70px;
}
.ltn__video-img {
    position: relative;
    display: inline-block;
}
.ltn__video-img::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: var(--qp-primary);
    opacity: 0.12;
    z-index: 0;
}
.ltn__video-img img {
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}
.ltn__video-icon-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--qp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.section-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.section-title {
    font-weight: 700;
}
.ltn__secondary-color {
    color: var(--qp-primary);
}
.ltn__list-item-half {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.ltn__list-item-half li {
    width: calc(50% - 12px);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
}
.ltn__list-item-half li i {
    color: var(--qp-primary);
    font-size: 18px;
}
.ltn__callout {
    background: rgba(var(--qp-primary-rgb), 0.08);
    border-left: 3px solid var(--qp-primary);
    padding: 16px 18px;
}
.ltn__callout p {
    margin: 0;
}
.theme-btn-1.btn {
    background: var(--qp-primary);
    color: #fff;
    border: 0;
}
.theme-btn-1.btn:hover {
    color: #fff;
    opacity: 0.9;
}
.ltn__counterup-area {
    background-color: #f8f8f8;
}
.ltn__counterup-item {
    margin-bottom: 30px;
    text-align: center;
}
.ltn__counterup-item .counter-icon {
    margin-bottom: 20px;
}
.ltn__counterup-item .counter-icon i {
    font-size: 48px;
    line-height: 1;
    color: var(--qp-primary);
}
.ltn__counterup-item h1 {
    font-weight: 700;
    font-size: 42px;
    margin-bottom: 6px;
}
.ltn__counterup-item h6 {
    color: #6b7280;
    margin-bottom: 0;
}
@media (max-width: 991px) {
    .ltn__counterup-item h1 {
        font-size: 36px;
    }
}
@media (max-width: 767px) {
    .ltn__counterup-item h1 {
        font-size: 30px;
    }
    .ltn__list-item-half li {
        width: 100%;
    }
}

/* ========== About page ========== */
.about-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
}
.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}
.about-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}
.about-hero h1 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.about-section-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--qp-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.about-section-title {
    font-weight: 700;
    color: #0f172a;
}
.about-video-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 16/10;
}
.about-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--qp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
}
.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.about-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--qp-primary-rgb), 0.12);
    color: var(--qp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.about-focus-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-focus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.about-focus-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(var(--qp-primary-rgb), 0.12);
    color: var(--qp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.about-agent-card {
    text-align: center;
}
.about-agent-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about-testimonial-section {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.about-testimonial-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%2394a3b8' fill-opacity='0.08' d='M0 0h20v20H0V0zm40 40h20v20H40V40z'/%3E%3C/svg%3E");
    opacity: 0.6;
}
.about-testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem;
    height: 100%;
}
.about-quote-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(var(--qp-primary-rgb), 0.4);
    font-family: Georgia, serif;
}
.about-blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.about-blog-card .card-img-top {
    height: 180px;
    object-fit: cover;
}
