/* =========================================================
   PESO-IMS - ABOUT US PAGE
========================================================= */

/* =========================================================
   PAGE ROOT
========================================================= */

.about-page {
    --about-primary: #0e3386;
    --about-primary-dark: #092d78;
    --about-primary-light: #edf3ff;
    --about-heading: #172033;
    --about-text: #64748b;
    --about-text-dark: #334155;
    --about-background: #f6f8fc;
    --about-white: #ffffff;
    --about-border: #e3e8f0;

    width: 100%;
    background: var(--about-background);
    color: var(--about-heading);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   SHARED CONTAINER
========================================================= */

.about-container {
    width: min(1120px, calc(100% - 60px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HERO
========================================================= */

.about-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../../images/Banner.jpg") center center / cover no-repeat;
    overflow: hidden;
}

/* HERO OVERLAY */
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 35, 89, 0.93) 0%,
        rgba(10, 47, 127, 0.80) 50%,
        rgba(10, 47, 127, 0.60) 100%
    );
}

/* HERO CONTENT */
.about-hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    padding: 55px 20px;
    text-align: center;
    color: #ffffff;
}

/* HERO LOGO */
.about-hero-logo-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about-hero-logo {
    width: 90px;
    height: 90px;
    display: block;
    object-fit: contain;
}

/* HERO LABEL */
.about-hero-label {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* HERO TITLE */
.about-hero-content h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

/* HERO DESCRIPTION */
.about-hero-content p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   SHARED SECTION HEADING
========================================================= */

.about-section-heading {
    margin-bottom: 40px;
}

.about-heading-centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* SECTION LABEL */
.about-section-label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--about-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* SECTION TITLE */
.about-section-heading h2 {
    margin: 0;
    color: var(--about-heading);
    font-size: 31px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

/* SECTION DESCRIPTION */
.about-section-heading p {
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--about-text);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   ABOUT INTRODUCTION
========================================================= */

.about-introduction-section {
    padding: 75px 0 80px;
    background: #ffffff;
}

.about-introduction-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 65px;
}

/* ABOUT TEXT */
.about-introduction-text {
    color: var(--about-text);
    font-size: 14px;
}

.about-introduction-text .about-lead {
    margin: 0 0 18px;
    color: var(--about-text-dark);
    font-size: 17px;
    line-height: 1.8;
}

.about-introduction-text p {
    margin: 0;
    line-height: 1.8;
}

/* =========================================================
   PURPOSE CARD
========================================================= */

.about-purpose-card {
    min-height: 320px;
    padding: 42px 45px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: #f4f7fc;
    border: 1px solid #e2e8f2;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.045);
}

/* PURPOSE ICON */
.about-purpose-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--about-primary);
    border-radius: 16px;
    color: #ffffff;
    font-size: 21px;
}

/* PURPOSE LABEL */
.about-purpose-content > span {
    color: var(--about-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

/* PURPOSE TITLE */
.about-purpose-content h3 {
    margin: 5px 0 9px;
    color: var(--about-primary);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

/* PURPOSE DESCRIPTION */
.about-purpose-content p {
    margin: 0;
    color: var(--about-text);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   WHAT WE DO
========================================================= */

.about-what-we-do {
    padding: 80px 0;
    background: var(--about-background);
}

/* CARD GRID */
.about-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   INFORMATION CARD
========================================================= */

.about-info-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--about-border);
    border-radius: 17px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-info-card:hover {
    transform: translateY(-5px);
    border-color: #d5deea;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}

/* =========================================================
   CARD IMAGE
========================================================= */

.about-card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e9eef5;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.about-info-card:hover .about-card-image img {
    transform: scale(1.04);
}

/* IMAGE ICON */
.about-image-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--about-primary);
    border-radius: 11px;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   CARD CONTENT
========================================================= */

.about-card-body {
    padding: 22px;
}

.about-card-number {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.about-card-body h3 {
    margin: 4px 0 8px;
    color: var(--about-primary);
    font-size: 19px;
    font-weight: 700;
}

.about-card-body p {
    margin: 0;
    color: var(--about-text);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   SERVICES
========================================================= */

.about-services-section {
    padding: 80px 0;
    background: #ffffff;
}

.about-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* SERVICE BOX */
.about-service-box {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--about-border);
    border-radius: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-service-box:hover {
    transform: translateY(-3px);
    border-color: #cbd7ec;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

/* SERVICE ICON */
.about-service-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--about-primary-light);
    color: var(--about-primary);
    border-radius: 11px;
    font-size: 17px;
}

/* SERVICE CONTENT */
.about-service-content {
    min-width: 0;
}

.about-service-content h3 {
    margin: 0 0 6px;
    color: var(--about-heading);
    font-size: 15px;
    font-weight: 700;
}

.about-service-content p {
    margin: 0;
    color: var(--about-text);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   CALL TO ACTION
========================================================= */

.about-cta-section {
    width: min(1120px, calc(100% - 60px));
    margin: 0 auto 70px;
    overflow: hidden;
    background: linear-gradient(110deg, #092d78 0%, #0e438f 100%);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(9, 45, 120, 0.12);
}

.about-cta-content {
    padding: 38px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* CTA LABEL */
.about-cta-text > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* CTA TITLE */
.about-cta-text h2 {
    margin: 5px 0 4px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}

/* CTA DESCRIPTION */
.about-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

/* CTA BUTTON */
.about-cta-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: #ffffff;
    color: var(--about-primary);
    border-radius: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.about-cta-button:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    color: var(--about-primary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.about-cta-button i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.about-cta-button:hover i {
    transform: translateX(3px);
}

/* =========================================================
   SCROLL REVEAL ANIMATION
========================================================= */

.about-page .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.about-page .reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Slight delay for cards */
.about-info-grid .about-info-card:nth-child(2),
.about-services-grid .about-service-box:nth-child(2) {
    transition-delay: 0.08s;
}

.about-info-grid .about-info-card:nth-child(3),
.about-services-grid .about-service-box:nth-child(3) {
    transition-delay: 0.16s;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .about-introduction-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-purpose-card {
        min-height: auto;
    }

    .about-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-info-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
    }

    .about-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
    /* CONTAINER */
    .about-container {
        width: calc(100% - 36px);
    }

    /* HERO */
    .about-hero {
        min-height: 390px;
    }

    .about-hero-content {
        padding: 45px 15px;
    }

    .about-hero-logo-wrapper {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .about-hero-logo {
        width: 76px;
        height: 76px;
    }

    .about-hero-label {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .about-hero-content h1 {
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .about-hero-content p {
        max-width: 500px;
        font-size: 13px;
    }

    /* SECTIONS */
    .about-introduction-section,
    .about-what-we-do,
    .about-services-section {
        padding: 60px 0;
    }

    .about-section-heading {
        margin-bottom: 30px;
    }

    .about-section-heading h2 {
        font-size: 26px;
    }

    .about-section-heading p {
        font-size: 13px;
    }

    /* INTRO */
    .about-introduction-grid {
        gap: 30px;
    }

    .about-introduction-text .about-lead {
        font-size: 15px;
    }

    .about-introduction-text {
        font-size: 13px;
    }

    /* PURPOSE */
    .about-purpose-card {
        min-height: unset;
        padding: 30px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        border-radius: 20px;
    }

    .about-purpose-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 18px;
    }

    .about-purpose-content h3 {
        font-size: 20px;
        margin: 5px 0 10px;
    }

    .about-purpose-content p {
        font-size: 13px;
    }

    /* WHAT WE DO */
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-info-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .about-card-image {
        height: 200px;
    }

    /* SERVICES */
    .about-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-service-box {
        padding: 21px;
    }

    /* CTA */
    .about-cta-section {
        width: calc(100% - 36px);
        margin-bottom: 45px;
        border-radius: 18px;
    }

    .about-cta-content {
        padding: 30px 25px;
        gap: 24px;
    }

    .about-cta-text h2 {
        font-size: 22px;
    }

    .about-cta-button {
        width: 100%;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
    .about-hero {
        min-height: 365px;
    }

    .about-hero-content h1 {
        font-size: 29px;
    }

    .about-hero-label {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .about-hero-logo-wrapper {
        width: 68px;
        height: 68px;
    }

    .about-hero-logo {
        width: 68px;
        height: 68px;
    }

    .about-section-heading h2 {
        font-size: 24px;
    }

    .about-purpose-card {
        padding: 25px 20px;
    }

    .about-purpose-content h3 {
        font-size: 18px;
    }

    .about-card-image {
        height: 180px;
    }

    .about-card-body {
        padding: 19px;
    }

    .about-service-box {
        gap: 14px;
        padding: 19px;
    }

    .about-service-icon {
        width: 42px;
        height: 42px;
    }

    .about-cta-content {
        padding: 27px 21px;
    }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .about-page *,
    .about-page *::before,
    .about-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .about-page .reveal {
        opacity: 1;
        transform: none;
    }
}
/* =========================================================
   PUBLIC ABOUT - RESPONSIVE SAFETY BASELINE
========================================================= */
.about-page,
.about-page section,
.about-page article,
.about-page .about-container,
.about-page .about-purpose-card,
.about-page .about-service-box,
.about-page .about-cta-content {
    min-width: 0;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page p,
.about-page a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-page img,
.about-page video,
.about-page svg {
    max-width: 100%;
}
