/* About Us Hero Section Styles */

.about-hero {
    position: relative;
    padding: 144px 0 100px;
    background: #ffffff;
    overflow: visible;
}

.about-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    padding-right: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-hero__content {
    /* 40% width vs visual 60% on desktop */
    flex: 0 0 45%;
    max-width: none;
}

.about-hero__visual {
    /* 60% width vs content 40% on desktop */
    flex: 0 0 55%;
    position: relative;
    min-height: 400px;
}

/* Badge Pill */
.about-hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 173, 139, 0.1);
    border-radius: 9999px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.about-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
    margin-right: 8px;
}

.about-hero__badge-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #00b894;
    margin: 0;
}

/* Title */
.about-hero__title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.66px;
    color: #020817;
    margin: 0 0 32px 0;
}

.about-hero__title-highlight {
    color: #00b894;
}

/* Description */
.about-hero__description {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 40px 0;
    max-width: 573px;
}

/* Button */
.about-hero__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-hero__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.about-hero__button-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Decorative Underline */
.about-hero__title-highlight-wrap {
    position: relative;
    display: inline-block;
    padding-bottom: 16px; /* space for underline */
}

.about-hero__title-underline {
    position: absolute;
    left: 0;
    bottom: 50px;
    width: 100%;
    height: 17px;
}

.about-hero__title-underline img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Visual Section */
.about-hero__image-container {
    position: relative;
    width: 100%;
    height: 390px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 40px -12px rgba(0, 173, 139, 0.25);
}

.about-hero__main-image {
    width: 100%;
    height: 125.78%;
    object-fit: cover;
    object-position: center top;
    margin-top: -6.02%;
}

/* Floating Elements */
.about-hero__floating-mini {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    z-index: 2;
}

.about-hero__mini-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-hero__tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.about-hero__tick img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mission Card */
.about-hero__mission-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 79px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    box-shadow: 0px 4px 20px -4px rgba(0, 121, 173, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 3;
}

.about-hero__mission-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
}

.about-hero__mission-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 16px;
    color: #000000;
    text-align: center;
    margin: 0;
}

/* Decorative Elements */
.about-hero__decor-group-1,
.about-hero__decor-group-2,
.about-hero__decor-group-3 {
    position: absolute;
    z-index: 1;
}

.about-hero__decor-group-1 {
    top: 20px;
    right: 120px;
    width: 19px;
    height: 29px;
    transform: rotate(225deg);
}

.about-hero__decor-group-2 {
    top: 25px;
    right: 110px;
    width: 7px;
    height: 30px;
    transform: rotate(225deg);
}

.about-hero__decor-group-3 {
    top: 22px;
    right: 140px;
    width: 19px;
    height: 29px;
    transform: rotate(225deg);
}

/* Place the small decor to the right of the CTA button */
.about-hero__cta-wrap .about-hero__decor-group-4 {
     position: absolute;
     top: 80px;
     right: -180px; /* nudge just outside the button edge */
     transform: translateY(-50%);
    width: 168px;
    height: 110px; /* reduced height */
     pointer-events: none;
}

/* Ensure SVG scales to the container without distortion */
.about-hero__cta-wrap .about-hero__decor-group-4 img {
    width: 70%;
    height: 80%;
    transform: rotate(12.157deg);
    object-fit: contain;
    display: block;
}

/* CTA wrapper anchors the absolute decor */
.about-hero__cta-wrap {
    position: relative;
    display: inline-block;
}

/* Background Gradient Blur */
.about-hero__bg-blur {
    position: absolute;
    top: 473px;
    right: 100px;
    width: 149px;
    height: 284px;
    background: #00f0c1;
    border-radius: 144px;
    filter: blur(200px);
    z-index: 0;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .about-hero__container {
        gap: 40px;
        padding-top: 70px !important;
    }

    .about-hero__badge{
        margin-bottom: 16px;
    }
    
    .about-hero__title {
        font-size: 52px;
        margin-bottom: 20px;
    }

    .about-hero__description{
        margin-bottom: 32px;
    }

    .about-hero__title-highlight-wrap {
    padding-bottom: 0px; /* space for underline */
}
}

@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0 60px;
    }
    
    .about-hero__container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .about-hero__content,
    .about-hero__visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }
    /* Let the visual wrapper shrink to content height on mobile */
    .about-hero__visual {
        min-height: 0;
        height: auto;
    }
    
    .about-hero__title {
        font-size: 42px;
    }
    
    .about-hero__description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .about-hero__mission-card {
        position: relative;
        top: 20px;
        left: 0;
        margin: 0 auto;
    }
    
    .about-hero__floating-mini {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto 0;
    }

    /* Hide decorative elements on mobile to prevent overlap/crowding */
    .about-hero__title-underline,
    .about-hero__decor-group-1,
    .about-hero__decor-group-2,
    .about-hero__decor-group-3,
    .about-hero__cta-wrap .about-hero__decor-group-4,
    .about-hero__bg-blur,
    .about-hero__mission-card,
    .about-hero__floating-mini {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .about-hero__title {
        font-size: 36px;
        line-height: 1.3;
    }
    
    .about-hero__container {
        padding: 0 16px;
    }
    
    .about-hero__image-container {
        height: 280px;
    }
}

/* Desktop-only decoration for mission card */
@media (min-width: 1025px) {
    .about-hero__mission-card {
        position: absolute; /* ensure positioning context */
        overflow: visible;  /* allow decoration to sit outside */
    }

    .about-hero__mission-card::after {
        content: "";
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 70px;
        height: 70px;
        background: url("../../images/about/grey-lines.svg") no-repeat center / contain;
        pointer-events: none;
    }
}
