/* Nice Homes Realtors — About page (hero styles: assets/css/nhr-page-hero.css) */

/* Intro — image matches content column height */
.nhr-about-intro-row {
    align-items: stretch;
}

.nhr-about-intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nhr-about-main-image {
    position: relative;
    height: 100%;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(20, 20, 20, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nhr-about-main-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nhr-about-content .sec-text {
    line-height: 1.85;
    margin-bottom: 1rem;
}

.nhr-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Mission cards */
.nhr-mission-card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--smoke-color, #f8f8f8);
    border: 1px solid var(--th-border-color, #e5e5e5);
}

.nhr-mission-card .icon {
    margin-bottom: 16px;
}

.nhr-mission-card .box-title {
    margin-bottom: 10px;
}

.nhr-mission-card .box-text {
    margin-bottom: 0;
    line-height: 1.75;
}

/* Why Choose Us */
.nhr-about-why {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.nhr-about-why-lead {
    max-width: 640px;
    margin-top: 12px;
    line-height: 1.75;
    color: #555;
}

.nhr-about-why-grid {
    --bs-gutter-y: 1.5rem;
}

.nhr-why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px 26px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.nhr-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color, #c62828), #8b1c1c);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nhr-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
    border-color: rgba(198, 40, 40, 0.15);
}

.nhr-why-card:hover::before {
    opacity: 1;
}

.nhr-why-card__num {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--theme-color, #c62828);
}

.nhr-why-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(198, 40, 40, 0.08);
}

.nhr-why-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nhr-why-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #141414;
}

.nhr-why-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    flex: 1;
}

/* Our Services preview */
.nhr-about-services {
    background: transparent;
}

.nhr-about-services .title-area .sec-text {
    max-width: 720px;
    line-height: 1.75;
}

.nhr-about-service-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nhr-about-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.nhr-about-service-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.nhr-about-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nhr-about-service-card:hover .nhr-about-service-card__media img {
    transform: scale(1.05);
}

.nhr-about-service-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.nhr-about-service-card__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--theme-color, #c62828);
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nhr-about-service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.nhr-about-service-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.nhr-about-service-card__title a {
    color: #141414;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhr-about-service-card__title a:hover {
    color: var(--theme-color, #c62828);
}

.nhr-about-service-card__text {
    flex: 1;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nhr-about-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-color, #c62828);
    text-decoration: none;
    margin-top: auto;
}

.nhr-about-service-card__link i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.nhr-about-service-card__link:hover {
    color: #8b1c1c;
}

.nhr-about-service-card__link:hover i {
    transform: translateX(4px);
}

/* Enquiry CTA */
.nhr-about-enquiry {
    background: linear-gradient(135deg, #141414 0%, #3a2222 50%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 48px 40px;
    color: #fff;
}

.nhr-about-enquiry .sec-title,
.nhr-about-enquiry .form-title {
    color: #fff;
}

.nhr-about-enquiry .sub-title,
.nhr-about-enquiry p {
    color: rgba(255, 255, 255, 0.88);
}

.nhr-about-enquiry .form-control,
.nhr-about-enquiry .orderby {
    background: #fff;
}

.nhr-about-enquiry .form-messages.success {
    color: #8fd4a0;
}

.nhr-about-enquiry .form-messages.error {
    color: #ffb4b4;
}

.nhr-about-enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.nhr-team-card .team-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.nhr-team-card .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .nhr-about-main-image {
        min-height: 280px;
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    .nhr-about-main-image {
        min-height: 240px;
        max-height: none;
        height: auto;
        aspect-ratio: 16 / 11;
    }

    .nhr-about-main-image img {
        position: relative;
        inset: auto;
        height: auto;
        min-height: 240px;
    }

    .nhr-about-enquiry {
        padding: 32px 24px;
    }

    .nhr-about-service-card__body {
        padding: 20px 22px 22px;
    }

    .nhr-about-service-card__title {
        font-size: 18px;
    }
}
