/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-cta {
    background-color: #1e3a8a;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-cta:hover {
    background-color: #1e40af;
    color: white;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

/* Fallback text styling if logo doesn't load */
.logo a:not(:has(.logo-img)) {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #1e3a8a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f8fafc;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.learn-more {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: underline;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
}

/* Testimonial Section */
.testimonial {
    background-color: #f8fafc;
    padding: 80px 0;
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial cite {
    color: #1e3a8a;
    font-weight: 600;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Content Sections */
.about-content,
.services-detail,
.blog-posts,
.contact-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.service-section {
    margin-bottom: 4rem;
}

.service-content h2 {
    border-bottom: 3px solid #1e3a8a;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.cta-section {
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-preview {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-preview h2 {
    margin-bottom: 1rem;
}

.blog-post-preview h2 a {
    color: #1e3a8a;
    text-decoration: none;
}

.blog-post-preview h2 a:hover {
    text-decoration: underline;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.read-more {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: underline;
}

.blog-cta {
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.estimate-form {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Blog Post Styles */
.blog-post {
    padding: 60px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-header h1 {
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul {
    margin-bottom: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content strong {
    color: #1e3a8a;
    font-weight: 600;
}

.post-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.post-content ol li {
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.post-cta {
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.post-cta h3 {
    margin-bottom: 1rem;
}

.post-navigation {
    text-align: center;
}

.back-to-blog {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-cta {
        padding: 2rem;
    }
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.certification {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #374151;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.menu-open span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.menu-open span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 65px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .services,
    .why-choose-us,
    .testimonial,
    .final-cta {
        padding: 40px 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .estimate-form {
        padding: 1.5rem;
    }
}