/**
 * HD Background styling for SEO Local Landing pages
 * Matches home page premium background aesthetic
 */

/* Remove the gap/wave whitespace from hg-page-header when used as the SEO landing hero */
.hg-seo-landing .hg-seo-landing__hero.hg-page-header {
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}
.hg-seo-landing .hg-seo-landing__hero .header-wave-bottom {
    display: none;
}

/* SEO Landing Hero Section - Premium HD Background */
.hg-seo-landing .hg-seo-landing__hero {
    background: linear-gradient(
        135deg,
        #f8faf9 0%,
        #f1f5f3 25%,
        #e8f2ed 50%,
        #f5f9f7 75%,
        #fafcfb 100%
    );
    position: relative;
    overflow: hidden;
}

.hg-seo-landing .hg-seo-landing__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(129, 199, 132, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hg-seo-landing .hg-seo-landing__hero .container-wrapper {
    position: relative;
    z-index: 2;
}

/* SEO Landing Body Section - Enhanced HD Background */
.hg-seo-landing .hg-seo-landing__body {
    background: linear-gradient(
        180deg,
        #f8faf9 0%,
        #f2f6f4 20%,
        #eef4f1 40%,
        #f0f5f2 60%,
        #f6f9f7 80%,
        #fafcfb 100%
    );
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.hg-seo-landing .hg-seo-landing__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(139, 195, 74, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 90% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(129, 199, 132, 0.02) 0%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hg-seo-landing .hg-seo-landing__body .container-wrapper {
    position: relative;
    z-index: 2;
}

/* Enhanced card backgrounds for content blocks */
.hg-seo-landing__block {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 250, 249, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Enhanced sidebar styling */
.hg-seo-landing__aside .hg-seo-landing__map,
.hg-seo-landing__aside .card-soft {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 249, 0.95) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* FAQ Section - Premium HD Background */
.hg-seo-landing__faq {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 249, 0.95) 50%,
        rgba(245, 249, 247, 0.98) 100%
    );
    position: relative;
    overflow: hidden;
}

.hg-seo-landing__faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(139, 195, 74, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(76, 175, 80, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hg-seo-landing__faq .container-wrapper {
    position: relative;
    z-index: 2;
}

/* Enhanced FAQ items */
.hg-seo-landing__faq-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 249, 0.98) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Guides Section - Premium HD Background */
.hg-seo-landing__guides {
    background: linear-gradient(
        135deg,
        #f8faf9 0%,
        #f2f6f4 25%,
        #eef4f1 50%,
        #f0f5f2 75%,
        #f6f9f7 100%
    );
    position: relative;
    overflow: hidden;
}

.hg-seo-landing__guides::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 25% 25%, rgba(139, 195, 74, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 75% 75%, rgba(76, 175, 80, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hg-seo-landing__guides .container-wrapper {
    position: relative;
    z-index: 2;
}

/* Waffle items grid enhancement */
.hg-seo-landing__waffles li {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 249, 0.95) 100%
    );
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Responsive enhancements for mobile */
@media (max-width: 768px) {
    .hg-seo-landing .hg-seo-landing__hero::before,
    .hg-seo-landing .hg-seo-landing__body::before,
    .hg-seo-landing__faq::before,
    .hg-seo-landing__guides::before {
        opacity: 0.7;
    }
}

/* High-resolution display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hg-seo-landing__block,
    .hg-seo-landing__aside .card-soft,
    .hg-seo-landing__faq-item {
        box-shadow: 
            0 16px 64px rgba(0, 0, 0, 0.08),
            0 4px 16px rgba(0, 0, 0, 0.06),
            inset 0 2px 0 rgba(255, 255, 255, 0.9);
    }
}

/* Smooth transitions for all enhanced elements */
.hg-seo-landing__block,
.hg-seo-landing__aside .card-soft,
.hg-seo-landing__faq-item,
.hg-seo-landing__waffles li {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hg-seo-landing__block:hover,
.hg-seo-landing__faq-item:hover,
.hg-seo-landing__waffles li:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Visit card — always white bg, dark text (override any gradient) */
.hg-seo-landing__visit {
    background: #ffffff !important;
    position: relative;
    z-index: 5;
}

/* Rating + delivery cards — always white */
.hg-seo-landing__rating,
.hg-seo-landing__delivery {
    background: #ffffff !important;
    position: relative;
    z-index: 5;
}

/* Delivery logos gentle hover scale */
.hg-seo-landing__delivery-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hg-seo-landing__delivery:hover .hg-seo-landing__delivery-img {
    transform: scale(1.03);
}

/* Gallery shots CSS float animation */
@media (prefers-reduced-motion: no-preference) {
    .hg-seo-landing__gallery-shot {
        animation: hg-gallery-float 6.5s ease-in-out infinite;
    }
    .hg-seo-landing__gallery-shot:nth-child(2) { animation-delay: 1.2s; }
    .hg-seo-landing__gallery-shot:nth-child(3) { animation-delay: 2.4s; }
    .hg-seo-landing__gallery-shot:nth-child(4) { animation-delay: 3.6s; }
}
@keyframes hg-gallery-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ── Badge shimmer sweep ── */
@media (prefers-reduced-motion: no-preference) {
    .hg-seo-landing__badge {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(240,124,124,0.12) 45%,
            transparent 100%
        ) no-repeat -200% center / 200% 100%;
        animation: hg-badge-shimmer 3.5s ease-in-out 1s infinite;
    }
}
@keyframes hg-badge-shimmer {
    0%   { background-position: -200% center; }
    60%  { background-position: 200% center; }
    100% { background-position: 200% center; }
}

/* ── Content block left-border flash on scroll enter ── */
.hg-seo-landing__block {
    border-left: 3px solid transparent;
    transition: border-color 0.4s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hg-seo-landing__block:hover {
    border-left-color: rgba(240,124,124,0.55);
}
.hg-seo-landing__block:hover .hg-seo-landing__h2 {
    color: #c0504b;
    transition: color 0.25s ease;
}

/* ── CTA button: shimmer arrow on hover ── */
.hg-seo-landing__cta .btn-primary {
    position: relative;
    overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
    .hg-seo-landing__cta .btn-primary::after {
        content: '';
        position: absolute;
        top: 0; left: -75%;
        width: 50%; height: 100%;
        background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
        transform: skewX(-20deg);
        transition: left 0.55s ease;
    }
    .hg-seo-landing__cta .btn-primary:hover::after {
        left: 130%;
    }
}

/* ── Visit card: opening underline on address ── */
.hg-seo-landing__visit-address {
    position: relative;
    display: inline-block;
}
.hg-seo-landing__visit-address::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 1px;
    background: rgba(240,124,124,0.45);
    transition: width 0.4s ease;
}
.hg-seo-landing__visit:hover .hg-seo-landing__visit-address::after {
    width: 100%;
}

/* ── Rating stars: pulsing glow on card hover ── */
.hg-seo-landing__rating:hover .hg-seo-landing__rating-star {
    filter: drop-shadow(0 0 4px rgba(240,124,124,0.6));
    transition: filter 0.3s ease;
}

/* ── FAQ summary: coral marker indicator ── */
.hg-seo-landing__faq-summary {
    position: relative;
    padding-left: 2.25rem;
}
.hg-seo-landing__faq-summary::before {
    content: '+';
    position: absolute;
    left: 1.1rem;
    top: 50%; transform: translateY(-50%);
    color: #F07C7C;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s ease;
}
details[open] .hg-seo-landing__faq-summary::before {
    transform: translateY(-50%) rotate(45deg);
}

/* ── Guide links: coral underline sweep ── */
.hg-seo-landing__guide-link {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding-bottom: 2px;
}
.hg-seo-landing__guide-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: currentColor;
    transition: width 0.28s ease;
    border-radius: 1px;
}
.hg-seo-landing__guide-link:hover::after {
    width: 100%;
}
