/* =========================================================
   CONSTRUCTION QUALITY ASSURANCE & QUALITY CONTROL PAGE
========================================================= */

/* HERO */
.qaqc-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    margin-top: 81px;
    padding: 50px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(37, 99, 235, 0.16) 0%,
            rgba(37, 99, 235, 0.05) 20%,
            transparent 46%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 30%
        ),
        linear-gradient(135deg, #0f2f4a 0%, var(--accent2) 55%, #153d5f 100%);
    isolation: isolate;
}

.qaqc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0) 24%,
        rgba(0, 0, 0, 0.14) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.qaqc-hero-content {
    position: relative;
    z-index: 2;
    padding-left: 160px;
    padding-right: 60px;
    color: var(--white1);
}

.qaqc-hero-content > * {
    opacity: 0;
    transform: translateY(28px);
    animation: qaqcHeroFadeUp 0.85s ease forwards;
}

.qaqc-hero-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--white1);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    animation-delay: 0.18s;
}

.qaqc-hero-subtitle {
    margin-top: 0;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    animation-delay: 0.34s;
    text-align: justify;
}

.qaqc-hero-image-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;
    box-shadow: -24px 0 50px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateX(36px) scale(1.02);
    animation: qaqcHeroImageIn 1s ease forwards;
    animation-delay: 0.22s;
}

.qaqc-hero-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(16, 42, 67, 0.2) 0%,
            rgba(16, 42, 67, 0.04) 28%,
            rgba(16, 42, 67, 0) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0) 25%,
            rgba(0, 0, 0, 0.12) 100%
        );
    z-index: 1;
    pointer-events: none;
}

.qaqc-hero-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.03);
    animation: qaqcHeroImageZoom 9s ease-out forwards;
    will-change: transform;
}

/* SERVICE DETAIL */
.qaqc-service-detail {
    padding: 50px 160px;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 34%
        ),
        linear-gradient(180deg, var(--white1) 0%, #f8fafc 100%);
}

.qaqc-service-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.6fr;
    gap: 50px;
    align-items: start;
}

.qaqc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 110px;
}

/* MAIN CARDS */
.qaqc-info-card,
.qaqc-contact-card,
.qaqc-content {
    position: relative;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.qaqc-info-card::before,
.qaqc-contact-card::before,
.qaqc-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.qaqc-info-card::after,
.qaqc-contact-card::after,
.qaqc-content::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 140px;
    height: 140px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.qaqc-info-card,
.qaqc-contact-card {
    padding: 30px;
}

.qaqc-content {
    padding: 40px;
    border-radius: 26px;
}

/* HEADINGS */
.qaqc-info-card h3,
.qaqc-contact-card h3,
.qaqc-content h3,
.qaqc-process-header h3,
.qaqc-framework-header h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    color: var(--titles);
    font-family: "Oswald", sans-serif;
    font-size: var(--h3-size);
    line-height: 1.1;
    text-transform: uppercase;
}

.qaqc-content p {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    color: var(--subtitles);
    line-height: 1.8;
    text-align: justify;
}

/* SIDEBAR LIST */
.qaqc-info-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qaqc-info-card li {
    position: relative;
    padding-left: 22px;
    color: var(--subtitles);
    line-height: 1.6;
}

.qaqc-info-card li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent1);
    border-radius: 50%;
}

/* BUTTON */
.qaqc-contact-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--white1);
    background: linear-gradient(135deg, var(--accent1), #3b82f6);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.qaqc-contact-btn::after {
    content: "→";
}

.qaqc-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

/* EYEBROW */
.qaqc-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: var(--white1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.qaqc-dark-eyebrow {
    color: var(--accent1);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.14);
}

/* PROCESS */
.qaqc-process-section {
    position: relative;
    z-index: 1;
    margin: 34px 0;
    padding: 30px;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37, 99, 235, 0.1),
            transparent 34%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

.qaqc-process-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.qaqc-process-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.qaqc-process-card {
    position: relative;
    min-height: 180px;
    padding: 24px;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.qaqc-process-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.qaqc-process-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.qaqc-process-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.qaqc-process-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent1);
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.qaqc-process-card h4 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--titles);
    font-family: "Oswald", sans-serif;
    font-size: var(--h4-size);
    line-height: 1.15;
    text-transform: uppercase;
}

/* HIGHLIGHT */
.qaqc-highlight {
    position: relative;
    z-index: 1;
    margin: 30px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--accent2), #153d5f);
    border-radius: 18px;
    overflow: hidden;
}

.qaqc-highlight::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.qaqc-highlight p {
    margin: 0;
    color: var(--white1);
}

/* FRAMEWORK */
.qaqc-framework-section {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    padding: 30px;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(37, 99, 235, 0.12),
            transparent 34%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

.qaqc-framework-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.qaqc-framework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.qaqc-framework-card {
    position: relative;
    padding: 24px;
    background: var(--white1);
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.qaqc-framework-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.qaqc-framework-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: var(--accent1);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    font-weight: 800;
}

.qaqc-framework-card h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: var(--titles);
    font-family: "Oswald", sans-serif;
    font-size: var(--h4-size);
    line-height: 1.15;
    text-transform: uppercase;
}

.qaqc-framework-card p {
    margin: 0;
    color: var(--subtitles);
    line-height: 1.7;
    text-align: left;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .qaqc-hero-content {
        padding-left: 100px;
        padding-right: 40px;
    }

    .qaqc-service-detail {
        padding: 50px 100px;
    }

    .qaqc-service-grid {
        gap: 36px;
    }

    .qaqc-hero-image-container {
        border-top-left-radius: 70px;
        border-bottom-left-radius: 70px;
    }
}

@media (max-width: 1200px) {
    .qaqc-hero {
        grid-template-columns: 1fr 1fr;
    }

    .qaqc-hero-content {
        padding-left: 60px;
        padding-right: 32px;
    }

    .qaqc-service-detail {
        padding: 50px 60px;
    }

    .qaqc-service-grid {
        grid-template-columns: 1fr;
    }

    .qaqc-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .qaqc-content {
        padding: 34px;
    }
}

@media (max-width: 1024px) {
    .qaqc-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 40px;
    }

    .qaqc-hero-content {
        padding: 0;
    }

    .qaqc-hero-image-container {
        height: 320px;
        min-height: 320px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
        box-shadow: none;
    }

    .qaqc-service-detail {
        padding: 36px 40px;
    }

    .qaqc-framework-grid {
        grid-template-columns: 1fr;
    }

    .qaqc-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .qaqc-hero {
        gap: 28px;
        padding: 28px 20px;
    }

    .qaqc-hero-image-container {
        height: 260px;
        min-height: 260px;
        border-bottom-left-radius: 36px;
        border-bottom-right-radius: 36px;
    }

    .qaqc-service-detail {
        padding: 28px 20px;
    }

    .qaqc-sidebar {
        grid-template-columns: 1fr;
    }

    .qaqc-content,
    .qaqc-info-card,
    .qaqc-contact-card {
        padding: 24px;
        border-radius: 20px;
    }

    .qaqc-service-grid {
        gap: 24px;
    }

    .qaqc-highlight,
    .qaqc-process-section,
    .qaqc-framework-section {
        padding: 22px;
    }

    .qaqc-process-card,
    .qaqc-framework-card {
        padding: 22px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .qaqc-hero {
        gap: 24px;
        padding: 28px 16px;
    }

    .qaqc-hero-image-container {
        height: 220px;
        min-height: 220px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .qaqc-service-detail {
        padding: 28px 16px;
    }

    .qaqc-content,
    .qaqc-info-card,
    .qaqc-contact-card {
        padding: 22px;
        border-radius: 18px;
    }

    .qaqc-process-card,
    .qaqc-framework-card {
        padding: 18px;
        border-radius: 16px;
    }

    .qaqc-highlight,
    .qaqc-process-section,
    .qaqc-framework-section {
        padding: 20px;
        border-radius: 16px;
    }

    .qaqc-process-card {
        min-height: auto;
    }

    .qaqc-process-card span {
        font-size: 28px;
    }
}

/* ANIMATIONS */
@keyframes qaqcHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qaqcHeroImageIn {
    from {
        opacity: 0;
        transform: translateX(36px) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes qaqcHeroImageZoom {
    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }
}
