/* Custom color classes for Tailwind 2.2.19 compatibility */
.text-navy { color: #0B2E4A; }
.bg-navy { background-color: #0B2E4A; }
.text-orange { color: #FF6A00; }
.bg-orange { background-color: #FF6A00; }
.bg-orange-600 { background-color: #E55A00; }
.text-teal { color: #0EA5A4; }
.bg-teal { background-color: #0EA5A4; }
.text-charcoal { color: #1F2937; }
.bg-charcoal { background-color: #1F2937; }
.bg-off-white { background-color: #F7FAFC; }
.bg-light-blue { background-color: #F0F8FF; }
.bg-light-teal { background-color: #F0FDFD; }
.bg-light-orange { background-color: #FFF8F0; }
.text-orange-100 { color: rgba(255, 255, 255, 0.9); }
.bg-light-navy { background-color: #F8FAFC; }
.bg-light-gray { background-color: #FAFBFC; }

/* Hero Section with Image Overlay */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://api.congero.com.au/imgs/f9b13731-4f2a-4f16-8452-c3127fd664a0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 46, 74, 0.85) 0%, rgba(11, 46, 74, 0.7) 50%, rgba(11, 46, 74, 0.6) 100%);
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero-subtitle {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.hero-trust-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta-primary {
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5);
}

.hero-cta-secondary {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsiveness for hero */
@media (max-width: 640px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .hero-trust-item {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-badge {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-background {
        background-attachment: fixed;
    }
}

/* Mechanic name overlay */

/* Mobile improvements */

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .step-number {
        font-size: 2.5rem;
    }
}

.service-area-overlay {
    background-color: rgba(11, 46, 74, 0.85);
}

.benefit-icon {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

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

section {
    scroll-margin-top: 70px;
}

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

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

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.count-up {
    animation: countUp 0.8s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in-up,
    .count-up {
        animation: none;
    }
}

/* Service cards equal height */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Center service icons */
.service-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

/* Center service card content */
.service-card {
    text-align: center;
}

.service-card h3 {
    text-align: center;
}

/* Testimonial carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.testimonial-slide .bg-light-teal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-slide p {
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .testimonial-slide p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .testimonial-slide .bg-light-teal {
        padding: 1.25rem;
    }
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: #FF6A00;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: #E55A00;
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: #FF6A00;
}

/* START: DYNAMIC FORM INSERT styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #1F2937;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #0B2E4A;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 0.5rem;
    min-height: 48px;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0EA5A4;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
}

.form-submit { 
    background-color: #FF6A00;
    color: white; 
    border: none; 
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.form-submit:hover { 
    background-color: #E55A00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    min-height: auto;
}

/* Enhanced select dropdown styling */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Form validation states */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group select:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #10b981;
}

/* Ensure form works on all screen sizes */
@media (max-width: 640px) {
    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading state for form */
.form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/error states */
/* END: DYNAMIC FORM INSERT styling */
