/* Author: Tobalt — https://tobalt.lt
 * Telecentras overrides layered over techwix.css.
 */

/* Hide Techwix demo placeholder images until client content is uploaded.
 * Real scraped photos live in /wp-content/uploads/ and filenames start with
 * `tcl-` (see scraper), so these selectors only match the bundled /assets/
 * placeholder graphics. */
img[src*="/hero/hero-img"],
img[src*="/about/about-img"],
img[src*="/about-big"],
img[src*="/about-sm"],
img[src*="/blog/blog-"],
img[src*="/blog-details/"],
img[src*="/case-study/"],
img[src*="/case-"],
img[src*="/testimonial/"],
img[src*="/team/team-"],
img[src*="/brand/brand-"],
img[src*="/brand-"],
img[src*="/shop/shop-cart-"],
img[src*="/shop-cart-"],
img[src*="/shape/sign"],
img[src*="/sign.png"] {
    visibility: hidden;
}

/* Collapse the right-side image column in the hero so the hero
 * doesn't show a big empty box. */
.techwix-hero-section-03 .hero-img:has(img[src*="/hero/hero-img"]),
.techwix-hero-section-03 .hero-img:has(img[src*="hero-img"]) {
    display: none;
}

/* Collapse the stacked about-04 image column when placeholders are inside it. */
.techwix-about-section-04 .about-img-wrap:has(img[src*="about-big"]),
.techwix-about-section-04 .about-img-wrap:has(img[src*="about-sm"]),
.techwix-about-section-04 .about-img-wrap:has(img[src*="/about/about-img"]) {
    display: none;
}

/* Blog card thumbnail fallback — collapse the thumb container if it wraps a placeholder. */
.techwix-blog-section .single-blog .blog-thumb:has(img[src*="/blog/blog-"]),
.techwix-blog-section .single-blog .blog-thumb:has(img[src*="blog-"]) {
    display: none;
}

/* Team card photo — collapse the image wrapper ONLY when it contains a
 * Techwix placeholder (filenames under /assets/images/techwix-originals/team/).
 * Real scraped photos live under /wp-content/uploads/ and render normally. */
.techwix-team-section .single-team .team-img:has(img[src*="/techwix-originals/team/"]) {
    display: none;
}

/* Sign image caption block (Alen Morno sin) fallback — handled by template edit,
 * but keep author image hidden as belt+braces in case a cached partial lingers. */
.about-author img[src*="sign"] {
    display: none;
}

/* Clear the Techwix placeholder background (hero-bg3.jpg, 1920x1020 dim label)
 * until a real hero photo is uploaded — use a brand gradient instead. */
.techwix-hero-section-03 {
    background-image: linear-gradient(135deg, #101942 0%, #1a2862 55%, #2b8efe 100%) !important;
}

/* Hero right-side illustrative SVG (transmission tower + animated waves).
 * Rendered in hero-03.php when no ACF image is set. */
.hero-tower-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.hero-tower-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}
.hero-wave {
    opacity: 0;
    transform-origin: 100px 75px;
    animation: heroWavePulse 3.2s ease-out infinite;
}
.hero-wave-2 { animation-delay: 0.8s; }
.hero-wave-3 { animation-delay: 1.6s; }
@keyframes heroWavePulse {
    0%   { opacity: 0;   transform: scale(0.6); }
    25%  { opacity: 0.9; }
    80%  { opacity: 0;   transform: scale(1.05); }
    100% { opacity: 0;   transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-wave { animation: none; opacity: 0.45; }
}
