/* Mira Group Real Estate About Page */

/* Hero Section */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.about-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--mira-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Story Section */
.story-section {
    padding: 84px 24px;
    background: var(--white);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 20px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mira-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 24px;
    line-height: 1.3;
}

.services-header .section-title,
.why-header .section-title,
.team-header .section-title {
    color: var(--black);
}

.section-text {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Services Section */
.services-section {
    padding: 84px 24px;
    background: var(--gray-light);
}

.services-header {
    text-align: center;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--mira-gold-light);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Why Choose Us Section */
.why-section {
    padding: 84px 24px;
    background: var(--white);
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-header {
    text-align: center;
    margin-bottom: 48px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
}

.why-card:hover {
    background: var(--gray-light);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--mira-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-icon svg {
    width: 26px;
    height: 26px;
    color: var(--mira-gold);
}

.why-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.why-desc {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 84px 24px;
    background: var(--gray-light);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: 48px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
}

.team-card:nth-child(3n + 2) {
    transform: translateY(48px);
}

.team-card {
    position: relative;
    padding-left: 18px;
}

.team-card::before {
    content: attr(data-index);
    position: absolute;
    top: -28px;
    left: -10px;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    color: var(--mira-gold);
    opacity: 0.1;
    letter-spacing: -0.04em;
    pointer-events: none;
    z-index: 0;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.team-card:hover::before {
    opacity: 0.18;
    transform: translateY(-4px);
}

.team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px 80px 2px 2px;
    background: var(--gray-light);
    margin-bottom: 22px;
    z-index: 1;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.8s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-info {
    position: relative;
    padding-left: 16px;
}

.team-info::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 2px;
    height: 28px;
    background: var(--mira-gold);
    transition: height 0.4s ease;
}

.team-card:hover .team-info::before {
    height: 44px;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.team-role {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* CTA Section */
.cta-section {
    padding: 72px 24px;
    background: var(--black);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--mira-gold);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--mira-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-icon .icon-svg,
.why-icon .icon-svg {
    width: 28px;
    height: 28px;
    filter: invert(58%) sepia(23%) saturate(1005%) hue-rotate(353deg) brightness(90%) contrast(86%);
}

.why-icon .icon-svg {
    width: 26px;
    height: 26px;
}

.cta-btn .icon-svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* FAQ Section */
.faq-section {
    padding: 40px 24px 60px;
    background: var(--gray-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--mira-gold);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-icon .icon-svg {
    width: 16px;
    height: 16px;
    filter: invert(58%) sepia(23%) saturate(1005%) hue-rotate(353deg) brightness(90%) contrast(86%);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 28px 24px;
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .story-container {
        gap: 40px;
    }

    .services-grid {
        gap: 20px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
    }

    .about-hero-title {
        font-size: 32px;
    }

    .story-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image {
        order: -1;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .team-card:nth-child(3n + 2) {
        transform: none;
    }

    .team-card::before {
        font-size: 56px;
        top: -18px;
    }

    .cta-title {
        font-size: 28px;
    }

}

/* Real Estate repair pass after shared CSS migration */
body.page-re-about .services-section {
    padding: 72px 24px;
    background: var(--gray-light);
}

body.page-re-about .services-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

body.page-re-about .services-header {
    text-align: center;
    margin-bottom: 40px;
}

body.page-re-about .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.page-re-about .service-card {
    display: block;
    padding: 32px;
    min-height: 0;
    text-align: left;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

body.page-re-about .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.11);
}

body.page-re-about .service-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 20px;
}

body.page-re-about .service-icon .icon-svg {
    width: 26px;
    height: 26px;
}

body.page-re-about .service-title {
    text-align: left;
}

body.page-re-about .service-title::after {
    left: 0;
    transform: none;
}

@media (max-width: 768px) {
    body.page-re-about .services-section {
        padding: 44px 16px;
    }

    body.page-re-about .services-header {
        margin-bottom: 32px;
    }

    body.page-re-about .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.page-re-about .service-card {
        padding: 28px 22px;
    }
}

body.page-re-about .about-hero-bg {
    background-image: url("../resources/media/page-image/modern_architecture_1920.jpg");
}

/* About design convergence */
body.page-re-about .service-card,
body.page-re-about .why-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

body.page-re-about .service-card:hover,
body.page-re-about .why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

body.page-re-about .about-hero {
    align-items: center;
    justify-content: center;
}

body.page-re-about .about-hero-content {
    max-width: 820px;
    text-align: center;
}

body.page-re-about .about-hero-title,
body.page-re-about .about-hero-subtitle {
    margin-right: auto;
    margin-left: auto;
}
