/* MJS Plumbing & Heating - Common CSS for Shared Components */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-secondary:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2196F3;
    border: 2px solid #2196F3;
    padding: 12px 24px;
    font-size: 14px;
}

.btn-outline:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo a {
    display: block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: #2196F3;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2196F3;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-header:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.phone-icon {
    font-size: 18px;
}

.phone-number {
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Footer Styles */
.footer {
    background: #1a237e;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: #64B5F6;
}

.certifications {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.certifications img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.certifications img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
        flex-direction: column;

}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-legal {
    flex: 1;
}

.footer-legal p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
        justify-content: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-separator {
    color: #666;
    font-size: 12px;
}

/* Common Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

/* Common Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

/* Common Card Styles */
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Common Rating Styles */
.rating {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #FFD700;
    font-size: 18px;
}

.rating-text {
    display: flex;
    flex-direction: column;
}

.rating-text strong {
    font-size: 18px;
    color: #333;
    line-height: 1;
}

.rating-text span {
    font-size: 12px;
    color: #666;
    line-height: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.scroll-to-top:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Common Responsive Breakpoints */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list a {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .cta-header {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
            flex-direction: column;

    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-wrapper {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .rating {
        padding: 10px 15px;
    }
    
    .rating-text strong {
        font-size: 16px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-list a:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Contact Form Section Styles */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.contact-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    color: #333;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-item p:hover {
    color: #2196F3;
}

.quote-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.quote-form h3 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    font-size: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.quote-form .btn {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 18px;
}

/* Success Message Styles */
.form-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Mobile Responsive for Contact Form */
@media (max-width: 768px) {
    .contact-form-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quote-form-container {
        padding: 30px 20px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
    
    .contact-info p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .quote-form-container {
        padding: 20px 15px;
    }
    
    .quote-form h3 {
        font-size: 24px;
    }
    
    .contact-info h2 {
        font-size: 24px;
    }
    
    .contact-details {
        gap: 20px;
    }
    
    .contact-item {
        gap: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .scroll-to-top,
    .contact-form-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}