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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu .btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
}

.nav-menu .btn-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Services Preview */
.services-preview {
    padding: 4rem 0;
    background-color: var(--background-light);
    text-align: center;
}

.services-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-preview p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.services-highlights ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.services-highlights li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.services-highlights li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-image {
    display: flex;
    align-items: flex-start;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.credentials {
    margin-top: 3rem;
}

.credentials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.credential-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.credential-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.credential-card p {
    color: var(--text-light);
}

/* Inspections Page */
.inspections-content {
    padding: 4rem 0;
}

.inspection-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.inspection-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.inspection-intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.inspection-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.inspection-category {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.inspection-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.inspection-category ul {
    list-style: none;
    padding-left: 0;
}

.inspection-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.inspection-category li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.inspection-category.special {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.inspection-category.special h3 {
    color: var(--white);
}

.inspection-category.special p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.inspection-category.special li {
    color: var(--white);
    opacity: 0.9;
}

.inspection-category.special li:before {
    color: var(--white);
}

.report-info {
    margin-top: 4rem;
    text-align: center;
}

.report-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.report-info > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.report-feature {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.report-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.report-feature p {
    color: var(--text-light);
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

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

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 0.5rem;
}

.contact-method h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-method p {
    color: var(--text-dark);
    font-size: 1.125rem;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method .small {
    font-size: 0.875rem;
    color: var(--text-light);
}

.quick-schedule {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.quick-schedule h3 {
    margin-bottom: 0.5rem;
}

.quick-schedule p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Forms */
.contact-form-section h2,
.schedule-form-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form,
.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

.faq-preview {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.faq-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.faq-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-light);
}

/* Schedule Page */
.schedule-content {
    padding: 4rem 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.schedule-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
}

.pricing-info {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}

.pricing-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pricing-info ul {
    list-style: none;
    margin: 1rem 0;
}

.pricing-info li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-info li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pricing-note {
    font-style: italic;
    font-size: 0.875rem;
}

.contact-alternative {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.contact-alternative h3 {
    margin-bottom: 0.5rem;
}

.contact-alternative p {
    opacity: 0.9;
}

.phone-large {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.phone-large a {
    color: var(--white);
    text-decoration: none;
}

.trust-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.trust-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.trust-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
}

.trust-stat {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Blog Page */
.blog-content {
    padding: 4rem 0;
    min-height: 400px;
}

.loading-message {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.blog-post-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features h2,
    .services-preview h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .inspection-categories {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-menu li {
        font-size: 0.8rem;
    }

    .nav-menu .btn-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .features-grid,
    .services-highlights ul {
        grid-template-columns: 1fr;
    }
}

/* Single Post Page */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

.single-post-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.single-post-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.single-post-content ul, 
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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