/* Custom CSS for Your Local Plumbing & Heating Ltd */

/* Web3Forms Contact Form Styles */
.web3form-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.contact-form .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

.contact-form select.form-control {
    cursor: pointer;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Responsive adjustments for Google Form */
@media (max-width: 768px) {
    .google-form-container {
        padding: 0.5rem;
    }
    
    .google-form-container iframe {
        height: 500px !important;
    }
}

@media (max-width: 576px) {
    .google-form-container iframe {
        height: 450px !important;
    }
}

/* Postcode Coverage Styling */
.postcode-coverage {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.postcode-coverage .badge {
    padding: 0.5rem 0.8rem;
    margin: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Area Cards Enhancement */
.area-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.area-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.area-card h5 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.area-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ffc107;
    --success-color: #25d366;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.6rem;
    color: #fbbf24;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
}

.call-btn {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    margin-top: -1px;
}

/* Removed decorative SVG pattern that was causing visual shadow */

.hero-features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.work-header {
    position: relative;
}

.work-header .price-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(45deg, #ffc107, #ffb300);
    color: #212529;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .price-badge {
    opacity: 1;
    transform: scale(1);
}

.service-image {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Google Reviews Widget Styling */
.google-reviews-widget {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-reviews-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.google-reviews-widget .btn {
    transition: all 0.3s ease;
}

.google-reviews-widget .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.review-summary .stars i {
    font-size: 1.2rem;
    margin: 0 2px;
}

/* Elfsight Reviews Widget Styling */
.elfsight-reviews-widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    padding: 20px;
}

.elfsight-reviews-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Ensure Elfsight widget fits properly */
.elfsight-reviews-widget > div {
    border-radius: 8px;
}

/* Responsive adjustments for Elfsight widget */
@media (max-width: 768px) {
    .elfsight-reviews-widget {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .elfsight-reviews-widget {
        padding: 10px;
    }
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.service-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 2.5rem;
}

.service-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Work Cards */
.work-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    height: 100%;
}

.work-card:hover {
    transform: translateY(-3px);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.work-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    flex: 1;
}

.price-badge {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.work-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Horizontal Playlist Styles */
.playlist-container {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.playlist-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.playlist-scroll::-webkit-scrollbar {
    height: 8px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: #004499;
}

.video-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.placeholder-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    padding: 1rem;
}

.playlist-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-title {
    padding: 1rem;
}

.video-title h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.video-title small {
    color: #666;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-content h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    border-top: 3px solid var(--secondary-color);
}

.stars {
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.customer-info strong {
    color: var(--dark-color);
    font-weight: 600;
}

.customer-info small {
    display: block;
    margin-top: 0.25rem;
}

/* Contact Methods */
.contact-method {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    text-align: center;
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 3rem;
}

.contact-method h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.google-form-container {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.whatsapp-info,
.phone-info {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

/* Area Cards */
.area-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-2px);
}

.area-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.area-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.area-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-call-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Coverage Area */
.coverage-area {
    background: rgba(0,102,204,0.05);
    padding: 2rem;
    border-radius: 15px;
}

/* Custom 5-column layout for coverage areas */
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 992px) {
    .col-lg-2-4 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-lg-2-4 {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .work-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .service-card,
    .work-card,
    .contact-method {
        margin-bottom: 1rem;
    }
    
    .call-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .contact-method {
        padding: 1.5rem;
    }
    
    .google-form-container iframe {
        height: 350px;
    }
    
    .floating-call-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-call-btn .btn {
        width: 50px;
        height: 50px;
    }
}

/* Trustpilot Widget Styling */
.trustpilot-widget {
    margin: 2rem auto;
    max-width: 600px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Loading Animation for Forms */
.google-form-container iframe {
    transition: opacity 0.3s ease;
}

/* Section Spacing */
section {
    position: relative;
}

/* Background Patterns */
.bg-light {
    background-color: #f8f9fa !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><circle cx="50" cy="50" r="2" fill="currentColor"/></svg>');
}
