/**
 * Aim Construction - Custom Styles
 * Additional styles and overrides
 * 
 * @package Aim_Construction
 */

/* Additional button styles */
.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Pagination Styles */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    color: #1E2A3A;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover,
.nav-links a:hover {
    background: #F7931E;
    border-color: #F7931E;
    color: #fff;
}

.pagination .current,
.nav-links .current {
    background: #F7931E;
    border-color: #F7931E;
    color: #fff;
}

/* Entry Content Styles */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

.entry-content img {
    border-radius: 15px;
    margin: 30px 0;
}

.entry-content a {
    color: #F7931E;
}

.entry-content a:hover {
    color: #E07B00;
    text-decoration: underline;
}

.entry-content blockquote {
    background: #F8F9FA;
    border-left: 4px solid #F7931E;
    padding: 30px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.15rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .project-detail-slider {
        height: 220px;
    }
    
    .project-detail-content {
        padding: 20px;
    }
    
    .project-detail-content h3 {
        font-size: 1.2rem;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* WordPress specific */
.wp-block-image {
    margin: 30px 0;
}

.wp-block-image img {
    border-radius: 15px;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
}

/* Menu active states */
.current-menu-item a,
.current_page_item a {
    color: #F7931E !important;
}

.current-menu-item a::after,
.current_page_item a::after {
    width: 100% !important;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

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

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

/* Service cards hover effect enhancement */
.service-card {
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* Project card 3D effect */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #F7931E;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #F7931E;
    color: #fff;
    padding: 15px 30px;
    z-index: 100000;
    border-radius: 0 0 10px 10px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Print styles enhancement */
@media print {
    .service-card,
    .project-card,
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section {
        padding: 40px 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
