/* Import theme colors */
@import url('theme-color.css');

/* Guardian Hero Section - Stroll Safely Design */

.guardian-hero-section {
    background: var(--primary-light);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.guardian-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.guardian-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
    align-items: stretch;
}

/* Left Section - Main Banner */
.guardian-hero-left {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 580px;
}

.guardian-hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
    background-color: var(--text-dark);
    /* Fallback */
    background-image: var(--hero-bg-image, url('../../assets/images/large-image.webp'));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Ensure background image loads properly */
.guardian-hero-background[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Simple banner background - no layers, just image */
.guardian-hero-background-simple {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: scale(1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Banner img (supports GIF; used when main banner has image) */
.guardian-hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* Subtle hover effect for left side large image */
.guardian-hero-background-simple:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Hero carousel (left-side main banners) */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
    overflow: hidden;
    border-radius: inherit;
    cursor: grab;
    touch-action: pan-y;
}

.hero-carousel.hero-carousel-dragging {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.hero-carousel.hero-carousel-dragging .guardian-hero-background-simple:hover {
    transform: none;
    filter: none;
}

.hero-carousel-track {
    display: flex;
    width: calc(var(--hero-slides, 1) * 100%);
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-carousel-slide {
    flex: 0 0 calc(100% / var(--hero-slides, 1));
    width: calc(100% / var(--hero-slides, 1));
    min-width: calc(100% / var(--hero-slides, 1));
    height: 100%;
    position: relative;
}

.hero-carousel-slide-inner {
    width: 100%;
    height: 100%;
    min-height: 580px;
}

.hero-carousel .guardian-hero-background-simple {
    opacity: 1;
    animation: none;
    min-height: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding: clamp(12px, 2.5vw, 28px);
}

/* Carousel overlay – top-left, responsive content (scaled by viewport) */
.hero-carousel-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(6px, 1.2vw, 14px);
    max-width: 85%;
}

.hero-carousel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--primary-light, #fff);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: clamp(0.85rem, 2.2vw, 1.5rem);
}

.hero-carousel-long-text {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-light, #fff);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.hero-carousel-long-text p {
    margin: 0 0 0.35em;
}

.hero-carousel-long-text p:last-child {
    margin-bottom: 0;
}

.hero-carousel-long-text a {
    color: inherit;
    text-decoration: underline;
}

.hero-carousel-long-text strong {
    font-weight: 700;
}

.hero-carousel-btn {
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    padding: clamp(6px, 1.2vw, 10px) clamp(14px, 2.5vw, 22px);
    background: var(--gradient-accent, linear-gradient(135deg, #4d6a92, #2d3d55));
    color: var(--primary-light, #fff);
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(0.65rem, 1.3vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.2em;
}

.hero-carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
    color: var(--primary-light, #fff);
}

/* Fade in animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Simple content overlay */
.guardian-hero-content-simple {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.guardian-hero-title-simple {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--primary-light);
    margin: 0;
}

/* Simple button wrapper */
.guardian-hero-button-wrapper-simple {
    position: relative;
    z-index: 2;
    margin-top: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.guardian-hero-shop-btn-simple {
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-accent);
    color: var(--primary-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s;
}

.guardian-hero-shop-btn-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 106, 146, 0.4);
    color: var(--primary-light);
}

.guardian-hero-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.guardian-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.guardian-hero-scene-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

/* Brick Wall on Left */
.guardian-hero-brick-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-image:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 25px,
            rgba(255, 255, 255, 0.05) 25px,
            rgba(255, 255, 255, 0.05) 27px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.05) 30px,
            rgba(255, 255, 255, 0.05) 32px);
    opacity: 0.6;
    z-index: 2;
}

/* Foliage at Bottom */
.guardian-hero-foliage {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.3) 0%, transparent 100%);
    z-index: 2;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath d='M0,120 Q50,80 100,100 T200,90 T300,100 T400,85 L400,120 L0,120 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: bottom;
}

/* Text Content Overlay */
.guardian-hero-content {
    position: relative;
    z-index: 3;
    padding: 40px 40px 180px 40px;
    pointer-events: none;
}

.guardian-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 82px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 15px;
    text-shadow:
        3px 3px 0 var(--accent-pink),
        6px 6px 0 var(--accent-pink),
        4px 4px 8px var(--shadow-light);
}

.guardian-hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px var(--shadow-light);
}

/* Circular Product Cutout */
.guardian-hero-product-cutout {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.2);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(77, 106, 146, 0.5);
    overflow: hidden;
}

.guardian-product-image,
.guardian-product-placeholder {
    width: 80%;
    height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.guardian-product-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Visibility states handled by classes */
.guardian-product-image.hidden {
    display: none !important;
}

.guardian-product-placeholder.hidden {
    display: none !important;
}

.guardian-product-placeholder.visible {
    display: block !important;
}

/* Lightning Bolts Animation */
.guardian-lightning-bolts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lightning-bolt {
    position: absolute;
    background: var(--gradient-accent);
    opacity: 0.8;
    animation: lightning 2s infinite;
}

.bolt-1 {
    width: 4px;
    height: 60px;
    top: 10%;
    left: 45%;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.bolt-2 {
    width: 3px;
    height: 50px;
    top: 20%;
    right: 25%;
    transform: rotate(-30deg);
    animation-delay: 0.5s;
}

.bolt-3 {
    width: 3px;
    height: 45px;
    bottom: 25%;
    left: 30%;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.bolt-4 {
    width: 4px;
    height: 55px;
    bottom: 15%;
    right: 35%;
    transform: rotate(-40deg);
    animation-delay: 1.5s;
}

@keyframes lightning {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.3;
    }
}

/* Shop Button */
.guardian-hero-button-wrapper {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 250px;
    z-index: 4;
}

.guardian-hero-shop-btn {
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-accent);
    color: var(--primary-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s;
}

.guardian-hero-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 106, 146, 0.4);
    color: var(--primary-light);
}

/* Right Section - Product Cards Grid */
.guardian-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-content: start;
    height: 580px;
}

.guardian-product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 277px;
    min-height: 277px;
    max-height: 277px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;


    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.guardian-product-card:nth-child(1) {
    animation-delay: 0.3s;
}

.guardian-product-card:nth-child(2) {
    animation-delay: 0.4s;
}

.guardian-product-card:nth-child(3) {
    animation-delay: 0.5s;
}

.guardian-product-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Subtle hover effect for right side images */
/* .guardian-product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-light);
} */

.guardian-product-card-image-only {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 12px;
    display: block;
}

/* Right Section - Product Cards Grid */
.guardian-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-content: start;
    height: 580px;
}

/* Product Card */
.guardian-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    height: 277px;
    min-height: 277px;
    max-height: 277px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.guardian-product-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 245, 0.35);

    border-radius: 10px;
    pointer-events: none;
}

.guardian-product-card:hover::after {
    top: 0;
}

.guardian-product-card.active::after {
    top: 0;
}



.guardian-product-card:hover .guardian-product-card-image-only {

    filter: brightness(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guardian-hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .guardian-hero-left {
        height: 450px;
        min-height: 450px;
        order: 1;
        width: 100%;
    }

    .guardian-hero-background {
        height: 100%;
        min-height: 450px;
    }

    .guardian-hero-background-simple {
        min-height: 450px;
        padding: 30px;
    }

    .hero-carousel {
        min-height: 450px;
    }

    .hero-carousel-slide-inner {
        min-height: 450px;
    }

    .hero-carousel .guardian-hero-background-simple {
        padding: 16px 20px;
    }

    .hero-carousel-overlay {
        gap: 8px;
        max-width: 82%;
    }

    .hero-carousel-title {
        font-size: 1.25rem;
    }

    .hero-carousel-long-text {
        font-size: 0.9rem;
    }

    .hero-carousel-btn {
        padding: 8px 18px;
        font-size: 0.78rem;
    }

    .guardian-hero-title-simple {
        font-size: 48px;
    }

    .guardian-hero-title {
        font-size: 64px;
    }

    .guardian-hero-subtitle {
        font-size: 22px;
    }

    .guardian-hero-product-cutout {
        width: 160px;
        height: 160px;
        right: 20px;
    }

    .guardian-hero-button-wrapper {
        right: 200px;
        bottom: 25px;
    }

    .guardian-hero-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        order: 2;
        width: 100%;
    }

    .guardian-product-card {
        height: 215px;
        min-height: 215px;
        max-height: 215px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .guardian-hero-section {
        padding: 30px 0;
    }

    .guardian-hero-grid {
        gap: 20px;
    }

    .guardian-hero-left {
        height: 400px;
        min-height: 400px;
        order: 1;
        width: 100%;
        margin-bottom: 0;
    }

    .guardian-hero-background {
        height: 100%;
        min-height: 400px;
    }

    .guardian-hero-background-simple {
        min-height: 400px;
        padding: 25px;
    }

    .hero-carousel {
        min-height: 400px;
    }

    .hero-carousel-slide-inner {
        min-height: 400px;
    }

    .hero-carousel .guardian-hero-background-simple {
        padding: 14px 18px;
    }

    .hero-carousel-overlay {
        gap: 6px;
        max-width: 80%;
    }

    .hero-carousel-title {
        font-size: 1.1rem;
    }

    .hero-carousel-long-text {
        font-size: 0.82rem;
    }

    .hero-carousel-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
    }

    .guardian-hero-title-simple {
        font-size: 36px;
    }

    .guardian-hero-shop-btn-simple {
        padding: 12px 24px;
        font-size: 14px;
    }

    .guardian-hero-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        order: 2;
        width: 100%;
        height: auto;
    }

    .guardian-product-card {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        width: 100%;
    }

    .guardian-hero-content {
        padding: 30px 25px 150px 25px;
    }

    .guardian-hero-title {
        font-size: 48px;
        text-shadow:
            2px 2px 0 var(--accent-pink),
            4px 4px 0 var(--accent-pink),
            3px 3px 6px var(--shadow-light);
    }

    .guardian-hero-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .guardian-hero-product-cutout {
        width: 120px;
        height: 120px;
        right: 15px;
    }

    .guardian-hero-button-wrapper {
        left: 25px;
        right: 150px;
        bottom: 20px;
    }

    .guardian-hero-shop-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .guardian-hero-container {
        padding: 0 15px;
    }

    .guardian-hero-section {
        padding: 20px 0;
    }

    .guardian-hero-grid {
        gap: 15px;
    }

    .guardian-hero-left {
        height: 350px;
        min-height: 350px;
        order: 1;
        width: 100%;
        margin-bottom: 0;
    }

    .guardian-hero-background {
        height: 100%;
        min-height: 350px;
    }

    .guardian-hero-background-simple {
        min-height: 350px;
        padding: 20px;
    }

    .hero-carousel {
        min-height: 350px;
    }

    .hero-carousel-slide-inner {
        min-height: 350px;
    }

    .hero-carousel .guardian-hero-background-simple {
        padding: 10px 14px;
    }

    .hero-carousel-overlay {
        gap: 5px;
        max-width: 78%;
    }

    .hero-carousel-title {
        font-size: 0.95rem;
    }

    .hero-carousel-long-text {
        font-size: 0.72rem;
    }

    .hero-carousel-btn {
        padding: 5px 12px;
        font-size: 0.65rem;
    }

    .guardian-hero-title-simple {
        font-size: 28px;
    }

    .guardian-hero-shop-btn-simple {
        padding: 10px 20px;
        font-size: 12px;
    }

    .guardian-hero-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        order: 2;
        width: 100%;
        height: auto;
    }

    .guardian-product-card {
        height: 155px;
        min-height: 155px;
        max-height: 155px;
        width: 100%;
    }

    .guardian-hero-content {
        padding: 25px 20px 130px 20px;
    }

    .guardian-hero-title {
        font-size: 36px;
        text-shadow:
            1px 1px 0 var(--accent-pink),
            3px 3px 0 var(--accent-pink),
            2px 2px 5px var(--shadow-light);
    }

    .guardian-hero-subtitle {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .guardian-hero-product-cutout {
        width: 100px;
        height: 100px;
        right: 10px;
    }

    .guardian-hero-button-wrapper {
        left: 20px;
        right: 120px;
        bottom: 15px;
    }

    .guardian-hero-shop-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .guardian-hero-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .guardian-product-card {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
}