/* Charleston House Painter - Custom Styles */

/* CSS Variables for Brand Colors */
:root {
    --primary-color: #2c5282;
    --secondary-color: #38a169;
    --accent-color: #ed8936;
    --text-color: #2d3748;
    --background-color: #ffffff;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    line-height: 1.1;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* Main Content Spacing */
.main-content {
    margin-top: 80px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--background-color) !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2a4a73;
    border-color: #2a4a73;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: #319559;
    border-color: #319559;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.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"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.trust-badges .badge {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

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

/* Honeypot spam protection - hide the field */
input[name="honeypot"] {
    display: none !important;
}

/* Trust Section */
.trust-section {
    background-color: var(--light-gray);
}

.trust-item {
    padding: 2rem 1rem;
    text-align: center;
}

.trust-item i {
    margin-bottom: 1rem;
}

.trust-item h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Service Areas */
.service-area-card .card {
    height: 100%;
}

.service-area-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Steps Section */
.how-it-works {
    background-color: var(--light-gray);
}

.step-item {
    padding: 2rem 1rem;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.service-card .card-body {
    padding: 1.5rem;
}

.service-card img {
    border-radius: 8px 0 0 8px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer a:hover {
    color: white;
}

.footer .social-links a {
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Page Headers */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

/* Blog Styles */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-content ul {
    margin-bottom: 1.5rem;
}

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

/* Comparison Cards */
.comparison-card {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.1);
}

/* Cost Tables */
.table {
    margin-bottom: 2rem;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody td {
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(44, 82, 130, 0.05);
}

/* Factor Cards */
.factor-card, .cost-card, .maintenance-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.factor-card:hover, .cost-card:hover, .maintenance-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.1);
}

/* Climate Cards */
.climate-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.climate-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.1);
}

/* Accordion Styles */
.accordion-button {
    font-weight: 500;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 82, 130, 0.25);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: rgba(44, 82, 130, 0.1);
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: #b7791f;
}

.alert-danger {
    background-color: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .service-card .row {
        flex-direction: column;
    }
    
    .service-card img {
        border-radius: 8px 8px 0 0;
        height: 200px;
    }
    
    .comparison-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .trust-item {
        padding: 1.5rem 0.5rem;
    }
    
    .step-item {
        padding: 1.5rem 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .page-header {
        background-color: transparent !important;
        color: var(--text-color) !important;
    }
}
