/* Custom styles for A Helping Hand Handyman */

/* Override minimal necessary styles with black and white theme */
:root {
    --primary-color: #000000;
    --secondary-color: #6c757d;
    --warning-color: #ffc107;
    --success-color: #198754;
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
}

/* Modern Hero Section */
.hero-modern {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
}

.image-card {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.image-card:nth-child(1) {
    grid-column: 1 / 3;
    aspect-ratio: 2 / 1;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Navigation styling */
.navbar-brand {
    font-size: 1.5rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Icon spacing */
.fas, .fab {
    width: 1.25em;
    text-align: center;
}

/* Contact form styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

/* Accordion styling for FAQ */
.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: white;
}

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

/* Black and white theme overrides */
.bg-primary {
    background-color: #000000 !important;
}

.text-primary {
    color: #000000 !important;
}

.btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

.btn-outline-primary {
    color: #000000 !important;
    border-color: #000000 !important;
}

.btn-outline-primary:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: white !important;
}

/* Emergency services highlight */
.bg-warning {
    background-color: var(--warning-color) !important;
}

/* Footer links */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Service cards equal height */
.card.h-100 {
    height: 100% !important;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Loading animation for better UX */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Gallery preview styles */
.gallery-preview-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.gallery-preview-overlay {
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-item img {
    transition: transform 0.3s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.05);
}

/* Modern Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-card h5 {
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #333;
    line-height: 1.5;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.service-icon {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .image-card:nth-child(1) {
        grid-column: 1;
        aspect-ratio: 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
    }
}
