/* Auto Glass World - Details (modules/global/global_details.php) */
.agw-dtl {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--agw-overlap));
    padding: var(--agw-space-section) 0;
    border-radius: var(--agw-overlap) var(--agw-overlap) 0 0;
    background: var(--agw-color-white);
}

.agw-dtl-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--agw-gap);
    align-items: center;
}

.agw-dtl-copy {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.agw-dtl-copy .eyebrow {
    margin-bottom: calc(var(--agw-label-gap) - 26px);
}

.agw-dtl-copy .agw-lead {
    max-width: 34ch;
}

/* "20+ Years in auto glass" */
.agw-dtl-seal {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-top: 6px;
    padding-top: 24px;
    border-top: 1px solid var(--agw-color-cool-line);
}

.agw-dtl-seal strong {
    display: flex;
    align-items: flex-start;
    color: var(--agw-color-navy);
    font-family: var(--agw-font-heading);
    font-size: clamp(5.5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.78;
}

.agw-dtl-seal strong span {
    margin-left: 4px;
    color: var(--agw-color-primary);
    font-size: 0.4em;
    line-height: 1;
}

.agw-dtl .agw-dtl-seal-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding-bottom: 4px;
    color: var(--agw-color-navy);
    font-family: var(--agw-font-mono);
    font-size: var(--agw-fs-label);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.agw-dtl-seal b {
    color: var(--agw-color-muted);
    font-family: var(--agw-font-body);
    font-size: var(--agw-fs-text);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Windshield drawing */
.agw-dtl-art {
    position: relative;
    aspect-ratio: 860 / 570;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--agw-color-cool-line);
    border-radius: 14px;
    background: var(--agw-color-cool);
}

.agw-dtl-art svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pa-grid {
    stroke: rgba(11, 30, 61, 0.06);
}

.pa-body {
    fill: none;
    stroke: rgba(11, 30, 61, 0.38);
    stroke-width: 1.2;
}

.pa-glass {
    fill: rgba(38, 80, 188, 0.08);
    stroke: var(--agw-color-navy);
    stroke-width: 1.4;
}

.pa-bond {
    fill: none;
    stroke: var(--agw-color-primary);
    stroke-width: 2;
    stroke-dasharray: 7 6;
}

.pa-cam {
    fill: var(--agw-color-navy);
}

.pa-lens {
    fill: none;
    stroke: var(--agw-color-sky);
    stroke-width: 2;
}

.pa-mount {
    fill: none;
    stroke: rgba(11, 30, 61, 0.55);
    stroke-width: 1.2;
}

.pa-lead {
    fill: none;
    stroke: rgba(11, 30, 61, 0.55);
    stroke-width: 1;
}

.pa-dot {
    fill: var(--agw-color-primary);
    stroke: var(--agw-color-white);
    stroke-width: 2;
}

.pa-label {
    fill: var(--agw-color-navy);
    font-family: var(--agw-font-mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* Points row */
.agw-dtl-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: var(--agw-space-block);
    margin-bottom: 0;
    list-style: none;
}

.agw-dtl-rail li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--agw-color-cool-line);
}

.agw-dtl-bar {
    position: absolute;
    top: -1.5px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--agw-color-primary);
    transform-origin: left;
}

.agw-dtl-n {
    color: var(--agw-color-primary);
    font-family: var(--agw-font-mono);
    font-size: var(--agw-fs-label);
    font-weight: 500;
    letter-spacing: 0.14em;
}

.agw-dtl-rail h3 {
    margin: 0;
    color: var(--agw-color-navy);
    font-size: var(--agw-fs-card);
}

.agw-dtl-rail p {
    margin: 0;
    font-size: var(--agw-fs-text);
    line-height: 1.55;
}

/* Scroll effects (transform / stroke only), CSS scroll timelines; without them everything shows at once. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .agw-dtl-bar {
            animation: agw-grow-x linear both;
            animation-timeline: view();
            animation-range: entry 20% cover 40%;
        }

        .agw-dtl-rail li:nth-child(2) .agw-dtl-bar {
            animation-range: entry 30% cover 46%;
        }

        .agw-dtl-rail li:nth-child(3) .agw-dtl-bar {
            animation-range: entry 40% cover 52%;
        }

        .agw-dtl-rail li:nth-child(4) .agw-dtl-bar {
            animation-range: entry 50% cover 58%;
        }

        .pa-bond {
            stroke-dasharray: none;
            animation: agw-draw linear both;
            animation-timeline: view();
            animation-range: entry 15% cover 50%;
        }

        .pa-call {
            animation: agw-fade linear both;
            animation-timeline: view();
            animation-range: entry 40% cover 55%;
        }
    }
}

@keyframes agw-grow-x {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes agw-draw {
    from {
        stroke-dasharray: 0 2400;
    }

    to {
        stroke-dasharray: 2400 0;
    }
}

@keyframes agw-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .agw-dtl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .agw-dtl-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }
}

@media (max-width: 575px) {
    .agw-dtl-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .agw-dtl-seal strong {
        font-size: 6rem;
    }

    .pa-label {
        font-size: 22px;
    }
}
