/* Custom color classes for Tailwind 2.2.19 compatibility */
.bg-forest-green { background-color: #1F7A39; }
.bg-leaf-green { background-color: #2FBF71; }
.bg-charcoal { background-color: #2B2B2B; }
.bg-mid-grey { background-color: #7A7A7A; }
.bg-off-white { background-color: #F7F9F7; }
.bg-warm-yellow { background-color: #F5C84C; }
.bg-dark-green { background-color: #155A2B; }

.text-forest-green { color: #1F7A39; }
.text-leaf-green { color: #2FBF71; }
.text-charcoal { color: #2B2B2B; }
.text-mid-grey { color: #7A7A7A; }
.text-off-white { color: #F7F9F7; }
.text-warm-yellow { color: #F5C84C; }

.border-forest-green { border-color: #1F7A39; }
.border-leaf-green { border-color: #2FBF71; }

/* Hero Section Styles */
.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/66508109-35c2-4d0b-a401-330d6222a3d9.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(31, 122, 57, 0.8) 0%, rgba(47, 191, 113, 0.6) 50%, rgba(21, 90, 43, 0.9) 100%);
    z-index: 2;
}

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

.hero-subtitle {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

.hero-cta-primary {
    box-shadow: 0 10px 25px rgba(245, 200, 76, 0.4);
}

.hero-cta-primary:hover {
    box-shadow: 0 15px 35px rgba(245, 200, 76, 0.6);
}

.hero-cta-secondary {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-hours {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }
    
    .hero-hours {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

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

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

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%; /* 5 slides total */
}

.testimonial-slide {
    flex: 0 0 33.333%; /* Show 3 slides at once on desktop */
    padding: 0 0.75rem;
    box-sizing: border-box;
}

/* Responsive testimonial display */
@media (max-width: 1023px) {
    .testimonial-slide {
        flex: 0 0 50%; /* Show 2 slides on tablet */
    }
}

@media (max-width: 767px) {
    .testimonial-slide {
        flex: 0 0 100%; /* Show 1 slide on mobile */
    }
}

/* Ensure testimonial cards have equal height */
.testimonial-slide .bg-off-white {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(31, 122, 57, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: #1F7A39;
}

/* Navigation buttons */
.testimonial-prev,
.testimonial-next {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(31, 122, 57, 0.3);
}

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

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

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

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

/* Two-column form layout on desktop */
@media (min-width: 768px) {
    .form-container form {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .form-group:has(select),
    .form-group:has(textarea),
    .form-group:has(input[type="checkbox"]) {
        grid-column: 1 / -1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2B2B2B;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1F7A39;
    box-shadow: 0 0 0 3px rgba(31, 122, 57, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.form-group input[type="checkbox"] + label {
    display: inline;
    margin-bottom: 0;
    margin-left: 0;
    font-weight: 500;
}

.form-submit { 
    background-color: #F5C84C;
    color: #2B2B2B;
    border: none; 
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    width: 100%;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .form-submit {
        width: auto;
        min-width: 200px;
    }
}

.form-submit:hover { 
    background-color: #f1c232;
}
/* END: DYNAMIC FORM INSERT styling */
