/* 
CSS Fixes for Inde Electricals Website
This file contains fixes for CSS issues identified across the site
*/

/* Reset and Base Fixes */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography Fixes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Navigation Fixes */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #28a745 !important;
}

/* Hero Section Fixes */
.carousel-item {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
}

/* Card Fixes */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 10px 10px 0 0;
}

/* Button Fixes */
.btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Form Fixes */
.form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

/* Contact Page Specific Fixes */
.contact-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4rem 0;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.contact-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
}

.contact-form .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
}

/* Footer Fixes */
footer {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .carousel-item {
        min-height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .carousel-item {
        min-height: 300px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-success {
    color: #28a745 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.border-success {
    border-color: #28a745 !important;
}

/* Spacing Fixes */
.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Image Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Link Fixes */
a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Alert Fixes */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    border-top-color: #28a745;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e7e34;
}

/* Map Fixes */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Accordion Fixes */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: #d4edda;
    color: #155724;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
