/* ============================================
   RPI HOMES — About Us Page Modern Styles
   October 2026 | BudgetPe
   ============================================ */

/* 1. Hero Section */
.about-hero-section {
    position: relative;
    padding: 110px 0 75px 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 22, 32, 0.60) 0%, rgba(10, 20, 28, 0.78) 100%);
    z-index: 1;
}

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

.about-breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(15, 25, 35, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.about-breadcrumb-pill a {
    color: #e2c875;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-breadcrumb-pill a:hover {
    color: #ffffff;
}

.about-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.about-hero-subtitle {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Section Common Tokens */
.about-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #9b792b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-section-heading {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f1923;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #c9a84c 0%, #a8832a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. Overview Section (Mastering Real Estate) */
.about-overview-section {
    padding: 50px 0 45px 0;
    background: #ffffff;
    position: relative;
}

.about-lead-text {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1a3c2a;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: left;
}

.about-body-text {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 14px;
    text-align: left;
}

/* Trust & Executive Highlights Grid */
.about-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.about-trust-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.25s ease;
}

.about-trust-card:hover {
    background: #ffffff;
    border-color: #c9a84c;
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.12);
    transform: translateY(-2px);
}

.about-trust-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

.about-trust-card-header i {
    color: #c9a84c;
    font-size: 1rem;
}

.about-trust-card-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1923;
    margin: 0;
}

.about-trust-card p {
    font-size: 0.83rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.about-media-wrapper {
    position: relative;
    padding: 0;
}

.about-media-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
    aspect-ratio: 3 / 4;
    max-height: 570px;
    width: 100%;
    background: #0f1923;
}

.about-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-media-wrapper:hover .about-media-card img {
    transform: scale(1.03);
}

.about-floating-badge-top {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(15, 25, 35, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.45);
    padding: 7px 16px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 3;
}

.about-floating-badge-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    border: 1px solid #edf2f7;
    z-index: 3;
}

.about-badge-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a3c2a 0%, #2a5c40 100%);
    color: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-badge-content h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f1923;
    margin: 0;
    line-height: 1.1;
}

.about-badge-content p {
    font-size: 0.75rem;
    color: #636e72;
    margin: 2px 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Value Pillars Section */
.about-pillars-section {
    padding: 60px 0;
    background: #f8fafb;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.about-pillar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 26px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f5;
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.about-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c 0%, #1a3c2a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.about-pillar-card:hover::before {
    opacity: 1;
}

.about-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(26, 60, 42, 0.08);
    color: #1a3c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.about-pillar-icon svg {
    width: 26px;
    height: 26px;
    fill: #1a3c2a;
    transition: fill 0.35s ease;
}

.about-pillar-card:hover .about-pillar-icon {
    background: #1a3c2a;
    color: #c9a84c;
    transform: scale(1.08);
}

.about-pillar-card:hover .about-pillar-icon svg {
    fill: #c9a84c;
}

.about-pillar-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 10px;
}

.about-pillar-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* 4. Executive Leadership Section */
.about-leadership-section {
    padding: 65px 0 60px 0;
    background: #ffffff;
}

.leader-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leader-card:hover {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-3px);
}

.leader-img-box {
    position: relative;
    height: 100%;
    min-height: 360px;
    background: #0f1923;
    overflow: hidden;
}

.leader-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.leader-card:hover .leader-img-box img {
    transform: scale(1.03);
}

.leader-badge-pill {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(15, 25, 35, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 6px 14px;
    border-radius: 30px;
    color: #c9a84c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.leader-content {
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.leader-name-tag {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f1923;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.leader-role-tag {
    font-size: 0.95rem;
    color: #9b792b;
    font-weight: 600;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leader-quote-box {
    position: relative;
    padding: 16px 20px;
    background: #fbfbf9;
    border-left: 3px solid #c9a84c;
    border-radius: 0 12px 12px 0;
    margin-bottom: 22px;
}

.leader-bio-text {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #475569;
    margin: 0;
    text-align: left;
}

.leader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leader-tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* 5. Accreditations & Documents Section */
.about-documents-section {
    padding: 65px 0 70px 0;
    background: linear-gradient(180deg, #f8fafb 0%, #edf2f0 100%);
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.doc-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    border-color: #c9a84c;
}

.doc-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(26, 60, 42, 0.08);
    color: #1a3c2a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.doc-card-thumb {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.doc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doc-card:hover .doc-card-thumb img {
    transform: scale(1.04);
}

.doc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.doc-card:hover .doc-card-overlay {
    opacity: 1;
}

.doc-card-overlay .btn-preview-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a3c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.doc-card-overlay .btn-preview-circle:hover {
    transform: scale(1.1);
    background: #c9a84c;
    color: #ffffff;
}

.doc-card-info {
    flex-grow: 1;
    margin-bottom: 18px;
}

.doc-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 6px;
    line-height: 1.3;
}

.doc-card-authority {
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 10px;
    font-weight: 500;
}

.doc-verified-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #1a7442;
    font-weight: 600;
    background: #ebfbee;
    padding: 4px 10px;
    border-radius: 6px;
}

.doc-actions-group {
    display: block;
    margin-top: auto;
}

.btn-doc-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: #1a3c2a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-doc-view:hover {
    background: #2a5c40;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 60, 42, 0.25);
}

/* 6. Call to Action Section */
.about-cta-section {
    position: relative;
    padding: 85px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 18, 26, 0.72) 0%, rgba(15, 25, 35, 0.85) 100%);
    z-index: 1;
}

.about-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.about-cta-desc {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.about-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #c9a84c 0%, #e2c875 100%);
    color: #0f1923;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.35);
    transition: all 0.3s ease;
}

.btn-cta-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(201, 168, 76, 0.5);
    color: #0f1923;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: #ffffff;
}

/* 7. Modal & Multi-Page Document Viewer Styling */
.doc-modal-dialog {
    max-width: 950px;
}

.doc-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.doc-modal-header {
    background: #0f1923;
    color: #ffffff;
    padding: 18px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-modal-body {
    padding: 24px;
    background: #f8fafc;
    text-align: center;
    max-height: 82vh;
    overflow-y: auto;
}

/* Page tab switcher */
.doc-page-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.doc-page-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-page-tab-btn:hover {
    background: #e2e8f0;
    color: #0f1923;
}

.doc-page-tab-btn.active {
    background: #1a3c2a;
    color: #ffffff;
    border-color: #1a3c2a;
    box-shadow: 0 4px 12px rgba(26, 60, 42, 0.25);
}

.doc-page-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.doc-page-image-item {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

.doc-page-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 16px;
}

.doc-page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1a3c2a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-page-nav-btn:hover:not(:disabled) {
    background: #1a3c2a;
    color: #ffffff;
    border-color: #1a3c2a;
}

.doc-page-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .about-hero-section {
        padding: 85px 0 60px 0;
    }
    .about-hero-title {
        font-size: 2.3rem;
    }
    .about-section-heading {
        font-size: 1.85rem;
    }
    .leader-img-box {
        min-height: 320px;
    }
    .leader-content {
        padding: 28px 24px;
    }
    .about-floating-badge-bottom {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 767px) {
    .about-hero-section {
        padding: 70px 0 45px 0;
    }
    .about-hero-title {
        font-size: 1.85rem;
    }
    .about-hero-subtitle {
        font-size: 0.95rem;
    }
    .about-overview-section,
    .about-leadership-section,
    .about-documents-section,
    .about-pillars-section {
        padding: 42px 0;
    }
    .about-section-heading {
        font-size: 1.55rem;
    }
    .about-trust-grid {
        grid-template-columns: 1fr;
    }
    .about-media-card {
        aspect-ratio: 4 / 5;
        max-height: 440px;
        margin-top: 10px;
    }
    .about-floating-badge-bottom {
        position: static;
        margin-top: 14px;
    }
    .leader-content {
        padding: 22px 18px;
    }
    .leader-name-tag {
        font-size: 1.45rem;
    }
    .about-cta-section {
        padding: 60px 0;
    }
    .about-cta-title {
        font-size: 1.6rem;
    }
    .about-cta-desc {
        font-size: 0.98rem;
    }
    .doc-page-tab-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}
