/**
 * Red Brass Advertising — Home Page Styles (front-page.php)
 * Loaded in <head> via wp_enqueue_scripts after seo.css.
 */

/* ==========================================================================
   1. Page Overflow & Sticky Support
   Overrides `main { overflow: hidden }` in main.css so position: sticky works
   ========================================================================== */
main#main-content {
    overflow: visible !important;
    overflow-x: clip !important;
}

.section--campaigns {
    overflow-x: hidden;
}

.rb-section-heading {
    padding: 20px 0;
}

.rb-section-heading--brand {
    padding: 20px 0;
    color: #A00025;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.Hero-container {
    padding: 125px 60px 30px;
    background: linear-gradient(54deg, rgba(232, 31, 62, 1) 0%, rgba(158, 28, 52, 1) 100%);
}

.Hero-container-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.Hero-container-video {
    max-width: 320px;
    margin-bottom: auto;
}

.Hero-container-video video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.Hero-container-2 {
    align-items: flex-end;
}

.Hero-container-2 div h1,
.Hero-container-2 div h2 {
    font-size: 9vw;
    margin: 0;
    line-height: 1;
}

.Hero-container-tagline {
    font-size: 28px;
    line-height: 35px;
    margin-top: 30px;
    margin-bottom: 22px;
}

.Hero-container-2 div h1,
.Hero-container-2 div h2,
.Hero-container-tagline {
    color: #ffffff;
}

.rb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .Hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 9rem 30px 30px;
    }

    .Hero-container-tagline {
        margin-left: 0;
        font-size: 20px;
        margin-top: 20px;
    }

    .Hero-container-2 div h1 {
        font-size: 10vw;
        margin-top: 2rem;
    }

    .Hero-container-2 div h2 {
        font-size: 10vw;
    }

    .Hero-container-1 {
        align-items: center;
        margin-top: 30px;
    }
}

@media (min-width: 992px) {
    .Hero-container-1 {
        transition: transform 0.4s ease, opacity 0.4s ease;
        will-change: transform, opacity;
    }

    .Hero-container-1.is-fixed {
        animation: 500ms ease-in-out 0s normal none 1 running fadeInDown;
        position: fixed;
        right: 6rem;
        z-index: 99999;
        transform: translateY(-20px);
        opacity: 0;
    }

    .Hero-container-1.is-fixed.active {
        transform: translateY(0);
        opacity: 1;
        height: 0;
    }
}

/* ==========================================================================
   3. About Us Sticky Scroll Gallery
   ========================================================================== */
.scroll-wrapper {
    height: 300vh;
    position: relative;
}

.gallery-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(113deg, rgba(232, 31, 62, 1) 0%, rgba(158, 28, 52, 1) 100%);
}

.gallery-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgb(255 255 255 / 0%) 0%,
        rgb(193 72 62 / 18%) 45%,
        rgb(255 206 215 / 38%) 75%,
        #ffffff 100%
    );
}

.gallery-section .image-container {
    position: absolute;
    top: 53%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 2;
}

.gallery-section .image {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(160px, 21vw, 300px);
    aspect-ratio: 4 / 3;
    max-width: none;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    transition: none !important;
    will-change: transform;
}

#image-1 { z-index: 6; }
#image-2 { z-index: 5; }
#image-3 { z-index: 4; }
#image-4 { z-index: 3; }
#image-5 { z-index: 2; }
#image-6 { z-index: 1; }

.gallery-section .content-container {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(650px, 88vw);
    text-align: center;
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    transition: none !important;
    will-change: opacity;
}

.gallery-section .content-container h2,
.gallery-section .content-container p {
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(80, 0, 18, 0.45);
}

@media screen and (max-width: 767px) {
    .gallery-section .image {
        width: clamp(130px, 38vw, 190px);
    }

    .gallery-section .content-container {
        width: 90vw;
    }
}

/* ==========================================================================
   4. Services Section & 7-Card Grid Centering
   ========================================================================== */
.rb-services-subheading {
    padding: 8px 0;
    letter-spacing: 1px;
}

.rb-service-grid > :last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* ==========================================================================
   5. Core Value Proposition Section
   ========================================================================== */
.rb-value-prop {
    background: #faf7f8;
    border-top: 1px solid rgba(160, 0, 37, 0.1);
    border-bottom: 1px solid rgba(160, 0, 37, 0.1);
    padding: 80px 0;
    margin-top: 50px;
}

.rb-value-prop__header {
    max-width: 780px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.rb-value-prop__heading {
    color: #A00025;
    margin-bottom: 16px;
    padding: 8px 0;
}

.rb-value-prop__lead {
    color: #2b2b2b;
    margin: 0 auto;
}

.rb-value-prop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.rb-value-card {
    background: #ffffff;
    border: 1px solid rgba(160, 0, 37, 0.14);
    border-top: 3px solid #A00025;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 10px 28px rgba(20, 10, 15, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.rb-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(160, 0, 37, 0.1);
}

.rb-value-card__title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 2.3rem;
    color: #141414;
    margin: 0 0 14px 0;
}

.rb-value-card__index {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #A00025;
    text-transform: uppercase;
}

.rb-value-card__body {
    font-size: 15px;
    line-height: 1.65;
    color: #3d3d3d;
    margin: 0;
}

@media (max-width: 991px) {
    .rb-value-prop {
        padding: 60px 0;
    }

    .rb-value-prop__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rb-service-grid > :last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
}

/* ==========================================================================
   6. Selected Creative Work (Campaigns Swiper)
   ========================================================================== */
.rb-campaigns-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.campaigns-slider {
    position: relative;
}

.campaignsSwiper {
    overflow: visible;
    padding: 40px 0;
}

.campaignsSwiper .swiper-slide {
    width: 320px;
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}

.imgBox {
    border: 3px solid #A00025;
    border-radius: 10px;
    overflow: hidden;
}

.campaigns-slider .swiper-button-prev {
    left: -10px;
}

.campaigns-slider .swiper-button-next {
    right: -10px;
}

@media (max-width: 600px) {
    .imgBox {
        max-width: 85%;
        margin: auto;
    }
}

/* ==========================================================================
   7. Industries Swiper
   ========================================================================== */
.rb-industries-section {
    background-image: url('../img/magnific_2931335717.png');
    background-size: cover;
    background-position: center left;
}

.indsutries_h {
    font-size: 20px;
    text-align: center;
    color: #ffffff;
    padding-bottom: 10px;
}

.swiper.industrySwiper {
    margin-top: 4rem;
    margin-bottom: 4rem;
    overflow: visible;
    position: static;
}

.swiper.industrySwiper div .swiper-slide {
    opacity: 0.4;
}

.swiper.industrySwiper div .swiper-slide-prev,
.swiper.industrySwiper div .swiper-slide-next {
    opacity: 0.8;
}

.swiper-pagination {
    margin-top: 30px;
}

.industry-slider .swiper-slide {
    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.swiper.industrySwiper .swiper-slide {
    opacity: 0.4;
    transform: scale(0.85);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
}

.industries-swiper-slide.swiper-slide-active .indsutries_div,
.swiper-slide-active .indsutries_div {
    transform: scale(1.35);
    transition: transform 0.6s ease;
    z-index: 2;
    opacity: 1;
}

.swiper-slide.industries-swiper-slide.swiper-slide-active {
    opacity: 1 !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: #A00025;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    box-shadow: rgb(255 255 255 / 87%) 0px 30px 60px -12px inset, rgb(255 0 0) 0px 18px 36px -18px inset;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 22px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .industry-prev,
    .industry-next {
        display: none !important;
    }
}

/* ==========================================================================
   8. Client Logo Bubbles
   ========================================================================== */
.bubble-wrap {
    overflow: hidden;
    height: 400px;
}

.bubbles {
    position: relative;
    background: salmon;
}

.bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}

.logo1  { background-image: url('../logos/12.png'); }
.logo2  { background-image: url('../logos/18.png'); }
.logo3  { background-image: url('../logos/20.png'); }
.logo4  { background-image: url('../logos/5.png'); }
.logo5  { background-image: url('../logos/7.png'); background-size: 81%; }
.logo6  { background-image: url('../logos/26.png'); }
.logo7  { background-image: url('../logos/16.png'); background-size: 125%; }
.logo8  { background-image: url('../logos/4.png'); }
.logo9  { background-image: url('../logos/14.png'); }
.logo10 { background-image: url('../logos/19.png'); }
.logo11 { background-image: url('../logos/9.webp'); }
.logo12 { background-image: url('../logos/4.png'); background-size: cover; }
.logo13 { background-image: url('../logos/10.png'); }
.logo14 { background-image: url('../logos/11.png'); }
.logo15 { background-image: url('../logos/2.png'); }
.logo16 { background-image: url('../logos/3.jpg'); }
.logo17 { background-image: url('../logos/17.png'); }
.logo18 { background-image: url('../logos/22.png'); }
.logo19 { background-image: url('../logos/24.png'); }
.logo20 { background-image: url('../logos/25.png'); background-size: 135%; }
.logo21 { background-image: url('../logos/6.jpg'); background-size: 65%; }
.logo22 { background-image: url('../logos/10.png'); }
.logo23 { background-image: url('../logos/16.png'); background-size: contain; }
.logo24 { background-image: url('../logos/13.jpg'); background-size: 66%; }
.logo25 { background-image: url('../logos/19.png'); }
.logo26 { background-image: url('../logos/23.jpg'); }
.logo27 { background-image: url('../logos/27.png'); }
.logo28 { background-image: url('../logos/11.png'); }
.logo29 { background-image: url('../logos/7.png'); }
.logo30 { background-image: url('../logos/1.png'); }
.logo31 { background-image: url('../logos/6.jpg'); background-size: 65%; }
.logo32 { background-image: url('../logos/23.jpg'); }
.logo33 { background-image: url('../logos/21.png'); }
.logo34 { background-image: url('../logos/1.png'); }

/* ==========================================================================
   9. Home Contact Section
   ========================================================================== */
.rb-home-contact {
    padding-top: 0;
}

.rb-home-contact__inner {
    background: #fcfcfc;
}
