/* Custom Styles for AutoPro Mechanics */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Links */
.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #DC2626;
    background-color: rgba(220, 38, 38, 0.1);
}

.nav-link.active {
    color: #DC2626;
    background-color: rgba(220, 38, 38, 0.1);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: #DC2626;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: #374151;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7));
}

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

.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Card Styles */
.card {
    background-color: #1F2937;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.card-white {
    background-color: white;
    color: #1F2937;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    background-color: #1F2937;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #E5E7EB;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-error {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #065F46;
    color: #D1FAE5;
    border: 1px solid #10B981;
}

.alert-error {
    background-color: #7F1D1D;
    color: #FEE2E2;
    border: 1px solid #EF4444;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Pricing Cards */
.pricing-card {
    background-color: #1F2937;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #DC2626;
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #DC2626;
    font-family: 'Teko', sans-serif;
}

/* Stats/Features List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list li svg {
    flex-shrink: 0;
    color: #DC2626;
    margin-top: 0.25rem;
}

/* Image Styles */
.service-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2.5rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #DC2626;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

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

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

/* Background Pattern for Hero */
.pattern-bg {
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-repeat: repeat;
}
