/* Custom Effects and Animations for Yorkshire Plumbing */

/* Hide blog and CTA sections initially, then show after 2 seconds */
.wpo-blog-section,
.wpo-cta-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

.wpo-blog-section.show,
.wpo-cta-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hide redundant text elements for cleaner interface */
.wpo-blog-section .blog-content .theme-btn-s2,
.wpo-cta-section .cta-content h2,
.wpo-cta-section .cta-action .theme-btn,
.wpo-cta-section .cta-action .theme-btn-s2,
.blog-preview-section .blog-preview-card .theme-btn-s2,
.wpo-site-footer .about-widget p,
.wpo-site-footer .widget-title h3,
.wpo-site-footer .link-widget ul li a,
.wpo-site-footer .newsletter-widget .widget-title h3,
.wpo-site-footer .newsletter-widget input[type="email"]::placeholder,
.wpo-site-footer .copyright,
.chat-widget .chat-text,
.chat-widget .chat-title span {
    display: none !important;
}

/* Improve user experience with better spacing and cleaner look */
.wpo-blog-section .blog-content {
    padding: 40px 25px 30px;
}

.wpo-cta-section .cta-content {
    padding: 2rem 1rem 1.5rem 1rem;
}

.wpo-site-footer .about-widget {
    text-align: center;
}

.wpo-site-footer .link-widget ul {
    text-align: center;
}

.wpo-site-footer .newsletter-widget {
    text-align: center;
}

.wpo-site-footer .newsletter-widget .f-from {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.wpo-site-footer .newsletter-widget input[type="email"] {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.wpo-site-footer .newsletter-widget input[type="submit"] {
    width: 100%;
    max-width: 300px;
}

/* Chat widget improvements */
.chat-widget .chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-widget .chat-button i {
    font-size: 1.2rem;
}

.chat-widget .chat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-widget .chat-header i {
    font-size: 1.2rem;
}

/* Blog preview card improvements */
.blog-preview-section .blog-preview-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.blog-preview-section .blog-preview-card h3 {
    margin-bottom: 0.8rem;
}

.blog-preview-section .blog-preview-card p {
    margin-bottom: 1.2rem;
}

/* Additional user-friendly improvements */
.wpo-blog-section .blog-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.wpo-blog-section .blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wpo-blog-section .blog-item .image {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.wpo-blog-section .blog-item .image img {
    transition: transform 0.3s ease;
}

.wpo-blog-section .blog-item:hover .image img {
    transform: scale(1.05);
}

/* CTA section improvements */
.wpo-cta-section {
    border-radius: 20px !important;
    overflow: hidden;
}

.wpo-cta-section .cta-features {
    flex-wrap: wrap;
    justify-content: center;
}

.wpo-cta-section .cta-features .feature {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wpo-cta-section .cta-features .feature:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Hero Section Effects */
.wpo-hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slider-item {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.slider-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    display: flex;
    align-items: center;
}

.slider-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
}

.slide-title h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-title h2 span {
    color: #ff6b35;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slide-btn {
    margin-bottom: 40px;
}

.slide-btn .theme-btn {
    margin-right: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.slide-btn .theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.slide-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    color: #ff6b35;
    font-size: 1.2rem;
}

/* Statistics Section */
.wpo-statistics-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.wpo-statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon i {
    font-size: 3rem;
    color: #ff6b35;
    background: rgba(255,255,255,0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon i {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.2);
}

.stat-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ff6b35;
}

.stat-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Awards Section */
.wpo-awards-section {
    background: #f8f9fa;
    position: relative;
}

.award-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.award-icon {
    position: relative;
    margin-bottom: 25px;
}

.icon-bg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.icon-bg i {
    font-size: 2rem;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.9), rgba(247,147,30,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.award-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.award-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.award-text p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.wpo-cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/project-bg.jpg') center/cover;
    z-index: 1;
}

.cta-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.9) 0%, rgba(52,73,94,0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content h2 span {
    color: #ff6b35;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-features .feature i {
    color: #ff6b35;
    font-size: 1.2rem;
}

.cta-action {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-action .theme-btn {
    margin-bottom: 15px;
    display: block;
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-action .theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Enhanced Service Cards */
.single-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.single-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.single-card .icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.single-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Pricing Cards */
.wpo-pricing-item {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.wpo-pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pricing-thumb {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Enhanced Testimonials */
.single-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.single-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Footer improvements */
.wpo-site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

.wpo-site-footer .widget {
    transition: all 0.3s ease;
}

.wpo-site-footer .widget:hover {
    transform: translateY(-3px);
}

.wpo-site-footer .social-icon ul {
    justify-content: center;
    gap: 15px;
}

.wpo-site-footer .social-icon ul li a {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wpo-site-footer .social-icon ul li a:hover {
    background: #107CDF;
    transform: translateY(-3px);
}

/* Chat widget enhancements */
.chat-widget .chat-button {
    background: linear-gradient(135deg, #107CDF 0%, #0d6efd 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16,124,223,0.3);
    transition: all 0.3s ease;
}

.chat-widget .chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,124,223,0.4);
}

.chat-widget .chat-popup {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.chat-widget .chat-header {
    background: linear-gradient(135deg, #107CDF 0%, #0d6efd 100%);
    border-radius: 20px 20px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-title h2 {
        font-size: 2.5rem;
    }
    
    .slide-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-content h2 {
        font-size: 2.5rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Animation */
.loading {
    animation: pulse 2s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Buttons */
.theme-btn {
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.theme-btn:hover::before {
    left: 100%;
}

/* Footer Overlay and Beautification */
.wpo-site-footer::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(16,124,223,0.85) 0%, rgba(18,26,34,0.92) 100%);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
.wpo-site-footer .container, .wpo-site-footer .wpo-upper-footer, .wpo-site-footer .wpo-lower-footer {
  position: relative;
  z-index: 1;
}
.wpo-site-footer .widget {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(16,124,223,0.07);
  transition: box-shadow 0.3s;
}
.wpo-site-footer .widget:hover {
  box-shadow: 0 6px 32px rgba(16,124,223,0.15);
}
.wpo-site-footer .widget-title h3 {
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.wpo-site-footer .about-widget p, .wpo-site-footer .newsletter-widget p {
  color: #e3e6ed;
  font-size: 1.05rem;
  line-height: 1.7;
}
.wpo-site-footer .newsletter-widget input[type="email"] {
  border-radius: 6px 0 0 6px;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: #213254;
  margin-right: -4px;
}
.wpo-site-footer .newsletter-widget input[type="submit"] {
  border-radius: 0 6px 6px 0;
  background: #107CDF;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  transition: background 0.2s;
}
.wpo-site-footer .newsletter-widget input[type="submit"]:hover {
  background: #0e5fa6;
}
.wpo-site-footer .social-icon ul li a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 0.7rem;
  transition: color 0.2s;
}
.wpo-site-footer .social-icon ul li a:hover {
  color: #fbbf24;
}
.wpo-site-footer .copyright {
  color: #e3e6ed;
  font-size: 1rem;
  letter-spacing: 0.2px;
  margin-top: 1.5rem;
}

.enhanced-stats {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f0fc 100%);
  overflow: hidden;
}
.enhanced-stats .stats-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #213254;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.enhanced-stats .stats-subtitle {
  font-size: 1.2rem;
  color: #107cdf;
  margin-bottom: 2.5rem;
}
.stat-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(16,124,223,0.07);
  transition: box-shadow 0.3s;
  margin-bottom: 2rem;
  padding: 48px 20px 40px 20px;
}
.stat-item:hover {
  box-shadow: 0 8px 32px rgba(16,124,223,0.13);
}
.stat-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon i {
  font-size: 3.5rem;
  color: #107cdf;
  background: linear-gradient(135deg, #e3f0fc 0%, #fff 100%);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(16,124,223,0.08);
  transition: transform 0.3s;
}
.stat-item:hover .stat-icon i {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 4px 24px rgba(16,124,223,0.15);
}
.stat-content h2 {
  font-size: 3.2rem;
  color: #107cdf;
  font-weight: 900;
  margin-bottom: 0.3rem;
}
.stat-content p {
  font-size: 1.15rem;
  color: #213254;
  opacity: 0.95;
  font-weight: 600;
}
@media (max-width: 767px) {
  .stat-item {
    padding: 32px 10px 28px 10px;
  }
  .stat-content h2 {
    font-size: 2.2rem;
  }
}
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,124,223,0.2); }
  70% { box-shadow: 0 0 0 16px rgba(16,124,223,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,124,223,0); }
} 