/* ================================================
   BRECOL — CONSTRUCTION THEME ENHANCEMENTS
   ================================================ */

/* ══════════════════════════════════════════════════
   BLUEPRINT BACKGROUND (used on #about section)
   ══════════════════════════════════════════════════ */
.blueprint-bg {
    background-color: #0a1f44;
    background-image:
        linear-gradient(rgba(30, 90, 255, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 90, 255, .10) 1px, transparent 1px),
        linear-gradient(rgba(30, 90, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 90, 255, .04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    position: relative;
}

.blueprint-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%,
            rgba(10, 22, 40, .2) 0%, rgba(10, 22, 40, .7) 100%);
    pointer-events: none;
}

/* ══════════════════════════════════════════════════
   PHOTO SHOWCASE STRIP (horizontal scroll gallery)
   ══════════════════════════════════════════════════ */
#photo-strip {
    background: var(--navy);
    padding: 0;
    overflow: hidden;
}

.photo-strip-track {
    display: flex;
    gap: 6px;
    animation: strip-scroll 40s linear infinite;
    width: max-content;
}

.photo-strip-track:hover {
    animation-play-state: paused;
}

@keyframes strip-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.strip-photo {
    width: 320px;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.strip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(.85);
    transition: filter .4s ease, transform .6s ease;
    display: block;
}

.strip-photo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
}

.strip-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, .9), transparent);
    padding: 14px 14px 10px;
    color: white;
    font-size: .78rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s;
    font-family: var(--font-head, 'Outfit', sans-serif);
}

.strip-photo:hover .strip-photo-label {
    opacity: 1;
}

/* ══════════════════════════════════════════════════
   HOW WE BUILD — PROCESS SECTION
   ══════════════════════════════════════════════════ */
#process {
    background: var(--white);
    padding-bottom: 80px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Connecting line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--sky), var(--gold));
    border-radius: 2px;
    z-index: 0;
}

@media (max-width: 768px) {
    .process-grid::before {
        display: none;
    }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1) {
    transition-delay: .0s;
}

.process-step:nth-child(2) {
    transition-delay: .15s;
}

.process-step:nth-child(3) {
    transition-delay: .30s;
}

.process-step:nth-child(4) {
    transition-delay: .45s;
}

.process-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 8px 32px rgba(30, 90, 255, .12);
    transition: border-color .3s, box-shadow .3s;
    overflow: visible;
}

.process-step:hover .process-icon-wrap {
    border-color: var(--blue);
    box-shadow: 0 12px 40px rgba(30, 90, 255, .25);
}

.process-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    color: white;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head, 'Outfit', sans-serif);
    box-shadow: 0 4px 12px rgba(30, 90, 255, .4);
}

.process-svg {
    width: 60px;
    height: 60px;
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--navy, #0A1628);
    font-family: var(--font-head, 'Outfit', sans-serif);
}

.process-step p {
    font-size: .875rem;
    color: var(--gray-500, #7B8299);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   SAFETY BANNER
   ══════════════════════════════════════════════════ */
#safety-banner {
    background: linear-gradient(135deg, #F0A500 0%, #e06b00 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

#safety-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, .04) 0px,
            rgba(0, 0, 0, .04) 20px,
            transparent 20px,
            transparent 40px);
}

.safety-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.safety-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.safety-helmet {
    animation: helmet-bob 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes helmet-bob {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.safety-heading h3 {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-family: var(--font-head, 'Outfit', sans-serif);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.safety-heading h3 span {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    opacity: .9;
}

.safety-stats-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.safety-stat {
    text-align: center;
    color: white;
}

.safety-stat .num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-head, 'Outfit', sans-serif);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: block;
}

.safety-stat .lbl {
    font-size: .78rem;
    opacity: .85;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   CONSTRUCTION SERVICE SVG ICONS
   ══════════════════════════════════════════════════ */
.service-icon svg {
    width: 36px;
    height: 36px;
}

/* Animated icon: spin gear on hover */
.service-card:hover .icon-gear {
    animation: spin-gear 2s linear infinite;
}

@keyframes spin-gear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulse on crane hook */
.service-card:hover .icon-crane-hook {
    animation: crane-swing 1.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes crane-swing {

    0%,
    100% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

/* ══════════════════════════════════════════════════
   ANIMATED CONSTRUCTION HERO ELEMENT (floating)
   ══════════════════════════════════════════════════ */
.hero-crane-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-crane-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
    opacity: .18;
}

.crane-hook-anim {
    animation: crane-swing-hero 3s ease-in-out infinite;
    transform-origin: 50% 0;
}

.crane-beam-anim {
    animation: beam-pulse 4s ease-in-out infinite;
}

@keyframes crane-swing-hero {

    0%,
    100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@keyframes beam-pulse {

    0%,
    100% {
        opacity: .8;
    }

    50% {
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════
   REAL WORK MASONRY GRID
   ══════════════════════════════════════════════════ */
#real-work {
    background: var(--offwhite, #F4F7FF);
    padding: 100px 0 80px;
}

.real-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 12px;
}

.rw-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.rw-item.rw-large {
    grid-column: span 2;
    grid-row: span 2;
}

.rw-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .4s ease;
    min-height: 220px;
}

.rw-item.rw-large img {
    min-height: 460px;
}

.rw-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.rw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, .85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .35s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.rw-item:hover .rw-overlay {
    opacity: 1;
}

.rw-tag {
    background: rgba(30, 90, 255, .85);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    font-family: var(--font-head, 'Outfit', sans-serif);
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .real-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rw-item.rw-large {
        grid-column: span 2;
    }

    .hero-crane-wrap {
        display: none;
    }

    .safety-inner {
        justify-content: center;
        text-align: center;
    }

    .safety-heading {
        flex-direction: column;
        text-align: center;
    }

    .photo-strip-track {
        animation-duration: 30s;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .real-work-grid {
        grid-template-columns: 1fr;
    }

    .rw-item.rw-large {
        grid-column: span 1;
    }

    .strip-photo {
        width: 220px;
        height: 160px;
    }

    .safety-stats-row {
        gap: 20px;
    }
}