/* CSS Variables for Easy Color Customization */
:root {
    --primary-color: #dc2626;       /* Red - Change this to your preferred primary color */
    --secondary-color: #000000;     /* Black - Change this to your preferred secondary color */
    --accent-color: #ffffff;        /* White - Change this to your preferred accent color */
    --text-primary: #1f2937;        /* Dark gray for primary text */
    --text-secondary: #6b7280;      /* Medium gray for secondary text */
    --background-light: #f9fafb;    /* Light background */
    --background-dark: #111827;     /* Dark background */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #991b1b);
    --gradient-dark: linear-gradient(135deg, #1f2937, #111827);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 8px 0;
    font-size: 14px;
}

/* Header Styles */
.navbar {
    background: var(--accent-color) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.header-contact {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-contact:hover {
    background: #b91c1c;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--accent-color);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.emergency-call {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    text-align: center;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin: 15px 0;
}

.phone-number:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--background-light);
}

/* Contact Form Section */
.contact-form-section {
    background: var(--gradient-dark);
    color: var(--accent-color);
    padding: 100px 0;
    position: relative;
}

.contact-form-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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.contact-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    color: var(--accent-color);
}

/* Services Grid */
.services-section {
    padding: 100px 0;
    background: var(--accent-color);
}

.service-card {
    background: var(--accent-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--background-light);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    background: var(--primary-color);
    color: var(--accent-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Statistics Section */
.stats-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--accent-color);
}

.stats-card {
    text-align: center;
    padding: 30px 20px;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--background-light);
}

.testimonial-card {
    background: var(--accent-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--accent-color);
}

.accordion-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: var(--accent-color);
    border: none;
    padding: 20px 25px;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent-color);
}

.accordion-body {
    padding: 0 25px 20px;
    color: rgba(255,255,255,0.9);
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background: var(--background-light);
    text-align: center;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    opacity: 0.8;
}

/* Hero Background Image */
.hero-section {
    background: linear-gradient(rgba(220, 38, 38, 0.8), rgba(153, 27, 27, 0.8)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
}

/* Service Images */
.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* About Section Images */
.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .phone-number {
        font-size: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .contact-form {
        padding: 25px;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b954;
    color: #fff;
    transform: scale(1.1);
}

/* Blue Theme Overrides for britishrecovery.co.uk */
.blue-theme {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb, #1e40af);
}

.blue-theme .btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.blue-theme .accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.2);
}

.blue-theme .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}