/* ============================================
   Home page — hero, stats, listings, about,
   testimonials & contact styles
   Used by: resources/views/frontend/pages/home.blade.php
   ============================================ */

:root {
    --rtob-navy: #054886;
    --rtob-navy-dark: #062c50;
    --rtob-orange: #ff7029;
    --rtob-ink: #1c2434;
}

/* ---- Hero ---- */
.home-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-position: center right;
    background-size: cover;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg,
            rgba(4, 18, 38, .97) 0%,
            rgba(5, 34, 63, .94) 42%,
            rgba(5, 44, 80, .78) 56%,
            rgba(5, 60, 105, .40) 72%,
            rgba(5, 72, 134, .25) 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to top, rgba(4, 18, 38, .55), transparent);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50rem;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-eyebrow .hero-eyebrow-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--rtob-orange);
    box-shadow: 0 0 0 4px rgba(255, 112, 41, .25);
}

.hero-title {
    max-width: 620px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.01em;
}

.hero-title .text-accent {
    color: var(--rtob-orange);
}

.hero-sub {
    max-width: 560px;
    color: rgba(255, 255, 255, .85);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Hero buttons */
.btn-hero-primary {
    background: var(--rtob-orange);
    border: 2px solid var(--rtob-orange);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.8rem;
    border-radius: .6rem;
    transition: all .25s ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background: #e85d17;
    border-color: #e85d17;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(255, 112, 41, .35);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, .06);
    border: 2px solid rgba(255, 255, 255, .55);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.8rem;
    border-radius: .6rem;
    backdrop-filter: blur(4px);
    transition: all .25s ease;
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
    background: #fff;
    border-color: #fff;
    color: var(--rtob-navy);
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .25);
}

/* ---- Stats strip ---- */
.hero-stats {
    position: relative;
    z-index: 3;
    margin-top: -3.5rem;
}

.hero-stats-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3rem rgba(6, 44, 80, .12);
    border: 1px solid rgba(6, 44, 80, .06);
}

.hero-stat {
    padding: 1.5rem 1rem;
    text-align: center;
}

.hero-stat + .hero-stat {
    border-left: 1px solid rgba(6, 44, 80, .08);
}

.hero-stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--rtob-navy);
    line-height: 1.1;
}

.hero-stat-number span {
    color: var(--rtob-orange);
}

.hero-stat-label {
    margin-top: .25rem;
    font-size: .84rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width: 767.98px) {
    .hero-stat + .hero-stat {
        border-left: 0;
    }

    .hero-stat:nth-child(even) {
        border-left: 1px solid rgba(6, 44, 80, .08);
    }

    .hero-stat:nth-child(n+3) {
        border-top: 1px solid rgba(6, 44, 80, .08);
    }
}

/* ---- Section headers ---- */
.section-eyebrow {
    display: inline-block;
    color: var(--rtob-orange);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.section-title {
    font-weight: 800;
    color: var(--rtob-ink);
    letter-spacing: -.01em;
}

/* ---- Listing cards ---- */
.listing-card {
    border: 1px solid rgba(6, 44, 80, .08);
    border-radius: .9rem;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-.35rem);
    box-shadow: 0 1.25rem 2.5rem rgba(6, 44, 80, .14);
}

.listing-card-media {
    position: relative;
    overflow: hidden;
}

.listing-card-media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .5s ease;
}

.listing-card:hover .listing-card-media img {
    transform: scale(1.05);
}

.listing-status {
    position: absolute;
    top: .9rem;
    left: .9rem;
    padding: .3rem .8rem;
    border-radius: 50rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
}

.listing-status.is-forsale { background: #0cbc87; }
.listing-status.is-undercontract { background: #f59e0b; }
.listing-status.is-sold { background: #dc3545; }
.listing-status.is-other { background: #6c757d; }

.listing-price {
    position: absolute;
    bottom: .9rem;
    right: .9rem;
    padding: .4rem .95rem;
    border-radius: .5rem;
    background: rgba(6, 44, 80, .92);
    backdrop-filter: blur(4px);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .3);
}

a.listing-price:hover {
    background: var(--rtob-orange);
    color: #fff;
}

.listing-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.listing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.listing-ref {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .03em;
}

.listing-type {
    padding: .22rem .7rem;
    border-radius: 50rem;
    background: rgba(255, 112, 41, .12);
    color: #d75613;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.listing-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 3em;
}

.listing-title a {
    color: var(--rtob-ink);
    text-decoration: none;
    transition: color .2s ease;
}

.listing-title a:hover {
    color: var(--rtob-navy);
}

.listing-location {
    font-size: .88rem;
    color: #64748b;
}

.listing-location i {
    color: var(--rtob-orange);
}

.listing-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.listing-cat {
    padding: .22rem .65rem;
    border-radius: 50rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #3a4256;
    font-size: .74rem;
    font-weight: 600;
}

.listing-cat.is-more {
    background: rgba(5, 72, 134, .08);
    border-color: transparent;
    color: var(--rtob-navy);
}

.listing-card-footer {
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid rgba(6, 44, 80, .08);
}

.listing-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .92rem;
    color: var(--rtob-navy);
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.listing-link:hover {
    color: var(--rtob-orange);
    gap: .75rem;
}

.btn-view-all {
    background: var(--rtob-navy);
    border: 2px solid var(--rtob-navy);
    color: #fff;
    font-weight: 700;
    padding: .7rem 2.2rem;
    border-radius: .6rem;
    transition: all .25s ease;
}

.btn-view-all:hover {
    background: var(--rtob-navy-dark);
    border-color: var(--rtob-navy-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(5, 72, 134, .3);
}

/* ---- Why choose ---- */
.why-media {
    position: relative;
    height: 100%;
    padding-bottom: 1.25rem; /* room for the floating badge */
}

.why-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(6, 44, 80, .15);
}

.why-badge {
    position: absolute;
    bottom: 0;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.4rem;
    background: var(--rtob-navy);
    border-radius: .9rem;
    color: #fff;
    box-shadow: 0 1rem 2rem rgba(6, 44, 80, .35);
}

.why-badge .why-badge-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rtob-orange);
    line-height: 1;
}

.why-badge .why-badge-text {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: .95;
}

.why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}

.why-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .85rem;
    border: 1px solid rgba(6, 44, 80, .08);
    border-radius: .7rem;
    background: #fff;
    color: var(--rtob-ink);
    font-size: .95rem;
    line-height: 1.5;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.why-list li:hover {
    transform: translateX(.3rem);
    border-color: rgba(255, 112, 41, .4);
    box-shadow: 0 .5rem 1.25rem rgba(6, 44, 80, .08);
}

.why-list li i {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(12, 188, 135, .12);
    color: #0cbc87;
    font-size: .72rem;
    margin-top: .1rem;
}

/* ---- Testimonials ---- */
.testimonials-wrap {
    background: linear-gradient(160deg, var(--rtob-navy-dark) 0%, var(--rtob-navy) 100%);
    border-radius: 1.25rem;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.testimonials-wrap::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 112, 41, .25), transparent 70%);
}

.testimonials-wrap .section-title {
    color: #fff;
}

.testimonial-card {
    background: #fff;
    border-radius: .9rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
}

.testimonial-quote-icon {
    font-size: 1.6rem;
    color: rgba(255, 112, 41, .55);
    line-height: 1;
}

.testimonial-text {
    font-size: .95rem;
    line-height: 1.7;
    color: #3a4256;
    font-style: italic;
    margin: 0;
}

.testimonial-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 44, 80, .08);
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.testimonial-person img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    color: var(--rtob-ink);
}

.testimonial-stars {
    color: #f7c32e;
    font-size: .8rem;
    white-space: nowrap;
}

/* ---- Contact ---- */
.contact-panel {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3.5rem rgba(6, 44, 80, .14);
    border: 1px solid rgba(6, 44, 80, .06);
}

.contact-pitch {
    background: linear-gradient(160deg, var(--rtob-navy-dark) 0%, var(--rtob-navy) 100%);
    color: #fff;
    padding: 2.75rem 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-pitch h2 {
    color: #fff;
    font-weight: 800;
}

.contact-pitch p {
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    margin: 0;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.contact-channel:hover {
    color: var(--rtob-orange);
}

.contact-channel i {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .1);
    color: var(--rtob-orange);
    font-size: 1rem;
}

.contact-form-side {
    background: #fff;
    padding: 2.75rem 2.25rem;
}

.contact-form-side .form-label {
    font-weight: 600;
    color: var(--rtob-ink);
    font-size: .9rem;
}

.contact-form-side .form-control,
.contact-form-side .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: .55rem;
    padding: .65rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form-side .form-control:focus,
.contact-form-side .form-select:focus {
    border-color: var(--rtob-navy);
    box-shadow: 0 0 0 .2rem rgba(5, 72, 134, .12);
}

.btn-contact-submit {
    background: var(--rtob-orange);
    border: 2px solid var(--rtob-orange);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.5rem;
    border-radius: .6rem;
    transition: all .25s ease;
}

.btn-contact-submit:hover {
    background: #e85d17;
    border-color: #e85d17;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(255, 112, 41, .3);
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 560px;
    }

    .contact-pitch,
    .contact-form-side {
        padding: 2rem 1.5rem;
    }
}
