/*
Theme Name: ConstructPro Bootstrap Dynamic
Theme URI: https://example.com/constructpro
Author: Custom Theme Developer
Author URI: https://example.com
Description: A fully dynamic Bootstrap 5 WordPress theme for construction materials businesses. ALL homepage sections are editable through WordPress Customizer - no coding required! Features: 8 editable feature cards, customizable comparison table, dynamic hero section, about section, and more. Perfect for construction, building supplies, and industrial businesses.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: constructpro
Tags: bootstrap, construction, business, responsive, custom-post-types, two-columns, theme-options

This theme uses Bootstrap 5 framework for responsive design and components.
*/

/* ============================================
   Custom Styles (Bootstrap overrides and additions)
   ============================================ */

:root {
    --cp-primary: #2c5f2d;
    --cp-secondary: #f59e0b;
    --cp-dark: #1a1a1a;
    --cp-light: #f8f9fa;
    --cp-border: #dee2e6;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--cp-dark);
}

/* Header & Navigation */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--cp-dark) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cp-secondary) !important;
}

.btn-primary {
    background-color: var(--cp-secondary);
    border-color: var(--cp-secondary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
    color: var(--cp-secondary);
    border-color: var(--cp-secondary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--cp-primary) 0%, #1e4620 100%);
    color: white;
    padding: 120px 0;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--cp-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--cp-secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cp-primary), #3d7c3f);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--cp-primary), #3d7c3f);
    color: white;
}

.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.highlight-value {
    color: var(--cp-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Dealer Cards */
.dealer-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid var(--cp-secondary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.dealer-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.dealer-name {
    color: var(--cp-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.dealer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.dealer-info a {
    color: var(--cp-secondary);
    text-decoration: none;
    font-weight: 600;
}

.dealer-info a:hover {
    text-decoration: underline;
}

/* Project Cards */
.project-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info-box {
    background: var(--cp-primary);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    height: 100%;
}

.contact-info-box h3 {
    color: white;
    margin-bottom: 2rem;
}

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

.contact-item h5 {
    color: var(--cp-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.contact-item a:hover {
    color: white;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cp-secondary);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

/* Footer */
.site-footer {
    background-color: #2d3748;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.site-footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--cp-secondary);
    transform: translateY(-3px);
}

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

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.bg-light-custom {
    background-color: #f8f9fa;
}

.text-primary-custom {
    color: var(--cp-primary) !important;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info-box,
    .contact-form {
        padding: 2rem;
    }
}

/* WordPress Core Styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sticky {
    /* Sticky post styles if needed */
}

/* Post Navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 2px solid var(--cp-border);
    border-bottom: 2px solid var(--cp-border);
    margin: 3rem 0;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}
