/* About page — professional content-driven sections */

.about-page {
    padding: 0;
    background: var(--color-surface-alt);
}

/* Shared section typography */
.ap-section {
    padding: clamp(4rem, 7vw, 5.5rem) 0;
}

.ap-section__header {
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 5vw, 3.25rem);
    text-align: center;
}

.ap-section__header--light {
    max-width: 52rem;
}

.ap-section__label {
    display: inline-flex;
    margin-bottom: 0.75rem;
}

.ap-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.ap-section__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ap-section__header--light .ap-section__title {
    color: #fff;
}

.ap-section__header--light .ap-section__title span {
    background: linear-gradient(90deg, #7dd3fc, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ap-section__lead {
    margin: 0 0 0.85rem;
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--color-text-muted);
}

.ap-section__lead--center {
    text-align: center;
}

.ap-section__lead:last-child {
    margin-bottom: 0;
}

.ap-section__header--light .ap-section__lead {
    color: #94a3b8;
}

/* ---- Who We Are ---- */
.ap-who {
    background: #fff;
}

.ap-who__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) 1.05fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.ap-who__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(15, 39, 68, 0.16);
}

.ap-who__media img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.ap-who__media-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 1.15rem 1.5rem;
    background: var(--color-primary-dark);
    border-left: 4px solid var(--color-accent);
    color: #fff;
}

.ap-who__media-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.ap-who__media-badge span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #bae6fd;
}

.ap-who__content p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--color-text-muted);
}

.ap-who__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ap-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0 0 clamp(2.5rem, 5vw, 3rem);
    padding: 0;
}

.ap-stats__item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ap-stats__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ap-stats__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
}

.ap-stats__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.ap-strengths {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, #082f49, #0c4a6e);
    border-radius: var(--radius-lg);
}

.ap-strengths__card {
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-strengths__card:last-child {
    border-right: none;
}

.ap-strengths__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-accent);
}

.ap-strengths__card h3 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.ap-strengths__card p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #94a3b8;
}

/* ---- Performance Guarantee ---- */
.ap-guarantee {
    position: relative;
    overflow: hidden;
    background: var(--color-primary-dark);
    color: #fff;
}

.ap-guarantee__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.ap-guarantee__glow--1 {
    top: -180px;
    left: -100px;
    background: var(--color-primary-light);
}

.ap-guarantee__glow--2 {
    bottom: -180px;
    right: -100px;
    background: var(--color-accent);
}

.ap-guarantee .container {
    position: relative;
    z-index: 1;
}

/* (Doc flow) No extra guarantee cards here */

/* ---- Capabilities ---- */
.ap-capabilities {
    background: var(--color-surface-alt);
}

.ap-capabilities__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 56rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.ap-capabilities__list li {
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-accent);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-primary-dark);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ap-capabilities__list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 73, 118, 0.18);
}

/* ---- Engineering process ---- */
.ap-engineering {
    background: #fff;
}

.ap-engineering__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.ap-engineering__header {
    text-align: left;
    max-width: none;
    position: sticky;
    top: 96px;
    align-self: start;
}

.ap-engineering__header .ap-section__lead {
    text-align: left;
}

.ap-engineering__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.ap-engineering__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.05rem 1.2rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.ap-engineering__check {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.14), rgba(249, 115, 22, 0.08));
    color: var(--color-accent-hover);
    margin-top: 0.05rem;
}

.ap-engineering__text {
    padding-top: 0.25rem;
    font-weight: 600;
}

.ap-engineering__list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 93, 4, 0.28);
    background: #fff;
}

/* ---- Industries ---- */
.ap-industries {
    background: var(--color-surface-alt);
}

.ap-industries__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ap-industries__list li {
    padding: 1rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-industries__list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---- Why choose ---- */
.ap-why {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.ap-why::before,
.ap-why::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -120px;
    width: min(1100px, 96vw);
    height: 320px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 45% 85% at 20% 40%, rgba(30, 73, 118, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 45% 85% at 80% 40%, rgba(232, 93, 4, 0.16) 0%, transparent 65%);
    pointer-events: none;
}

.ap-why::before {
    opacity: 1;
}

.ap-why::after {
    display: none;
}

.ap-why .container {
    position: relative;
    z-index: 1;
}

.ap-why .ap-section__label {
    color: var(--color-primary);
}

.ap-why .ap-section__label::before {
    background: var(--gradient-accent);
}

.ap-why .ap-section__title {
    color: var(--color-primary-dark);
}

.ap-why .ap-section__title span {
    color: var(--color-accent-hover);
}

.ap-why .ap-section__lead {
    color: var(--color-text-muted);
}

.ap-why__layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ap-why__row {
    display: grid;
    gap: 1.25rem;
}

.ap-why__row--top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ap-why__row--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(75% - 0.625rem);
    margin: 0 auto;
}

.ap-why__card {
    padding: 1.35rem 1.25rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ap-why__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    opacity: 1;
}

.ap-why__card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 73, 118, 0.22);
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.12);
}

.ap-why__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: rgba(30, 73, 118, 0.08);
    border: 1px solid rgba(30, 73, 118, 0.14);
    color: var(--color-primary-dark);
    border-radius: 10px;
    box-shadow: none;
}

.ap-why__title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.4;
}

.ap-why__card:hover .ap-why__badge {
    border-color: rgba(232, 93, 4, 0.28);
    color: var(--color-accent-hover);
}

@media (max-width: 1100px) {
    .ap-why__row--top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-why__row--bottom {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Mission & Vision (tabbed showcase) ---- */
.ap-mv {
    background: #fff;
    padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

.ap-who + .ap-mv {
    padding-top: 0;
}

.ap-mv__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--color-border);
}

.ap-mv__tab {
    position: relative;
    padding: 0 0 1rem;
    border: 0;
    background: none;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.ap-mv__tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.ap-mv__tab:hover {
    color: var(--color-primary-dark);
}

.ap-mv__tab.is-active {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.ap-mv__tab.is-active::after {
    transform: scaleX(1);
}

.ap-mv__panels {
    position: relative;
}

.ap-mv__panel {
    animation: ap-mv-fade 0.35s ease;
}

.ap-mv__panel[hidden] {
    display: none;
}

@keyframes ap-mv-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ap-mv__layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.ap-mv__media {
    position: relative;
    padding: 1.5rem 1.5rem 0 0;
}

.ap-mv__media img {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 39, 68, 0.14);
    display: block;
}

.ap-mv__media-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.ap-mv__media-deco--block {
    top: 0;
    left: 0;
    width: 72%;
    height: 78%;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(30, 73, 118, 0.1), rgba(125, 211, 252, 0.22));
}

.ap-mv__media-deco--dots {
    top: 8%;
    right: 0;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(circle, var(--color-accent) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.55;
}

.ap-mv__media-deco--wave {
    left: -4%;
    bottom: 4%;
    width: 140px;
    height: 70px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, transparent 68%, rgba(30, 73, 118, 0.08) 69%),
        radial-gradient(ellipse 60% 40% at 30% 80%, transparent 68%, rgba(30, 73, 118, 0.06) 69%);
    opacity: 0.9;
}

.ap-mv__content {
    padding: 0.5rem 0;
}

.ap-mv__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--color-primary-dark);
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    max-width: 18ch;
}

.ap-mv__text {
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--color-text-muted);
    max-width: 52ch;
}

.ap-mv__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.65rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
}

.ap-mv__cta svg {
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .ap-strengths {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-strengths__card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ap-strengths__card:nth-child(2n) {
        border-right: none;
    }

    .ap-capabilities__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .ap-who__grid {
        grid-template-columns: 1fr;
    }

    .ap-who__media img {
        min-height: 300px;
    }

    .ap-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-industries__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-why__row--top,
    .ap-why__row--bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .ap-mv__layout {
        grid-template-columns: 1fr;
    }

    .ap-mv__media {
        padding: 1rem 1rem 0 0;
        max-width: 560px;
    }

    .ap-engineering__layout {
        grid-template-columns: 1fr;
    }

    .ap-engineering__header {
        position: static;
    }
}

@media (max-width: 640px) {
    .ap-stats,
    .ap-industries__list,
    .ap-why__row--top,
    .ap-why__row--bottom {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ap-mv__tabs {
        gap: 1.25rem;
    }

    .ap-mv__title {
        max-width: none;
    }

    .ap-strengths__card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ap-strengths__card:last-child {
        border-bottom: none;
    }
}
