/* Custom styles for Rhema Support Services */

/* Mobile Navigation Styles */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

.mobile-dropdown-content {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-dropdown-content:not(.hidden) {
    max-height: 300px;
}

.mobile-dropdown-btn svg {
    transition: transform 0.2s ease-in-out;
}

/* Touch-friendly mobile menu items */
@media (max-width: 768px) {
    .mobile-dropdown-btn,
    #mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    #mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Testimonials Mobile Optimization */
.testimonials-slider {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.testimonials-track {
    will-change: transform;
}

.testimonials-grid {
    min-height: auto;
}

/* Touch-friendly testimonial controls */
.testimonials-prev,
.testimonials-next,
.testimonials-dot {
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-dot:hover,
.testimonials-dot:focus {
    transform: scale(1.2);
    opacity: 1 !important;
}

/* Mobile testimonial card optimizations */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonials-grid > div {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Ensure proper text scaling on mobile */
@media (max-width: 640px) {
    .testimonials-grid > div p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .testimonials-grid > div h4 {
        font-size: 1rem;
    }
    
    /* Consistent star rating spacing */
    .testimonials-grid .flex.text-yellow-400 {
        gap: 0.125rem;
    }
    
    /* Better mobile padding for testimonial section */
    section.py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background-color: white !important;
    opacity: 1 !important;
    border-color: white;
    transform: scale(1.2);
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Testimonials Slider Styles */
.testimonials-slider {
    overflow: hidden;
}

.testimonials-track {
    width: 200%;
    transition: transform 0.5s ease-in-out;
}

.testimonials-grid {
    width: 50%;
}

.testimonials-prev,
.testimonials-next {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    transform: scale(1.1);
}

.testimonials-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dot:hover {
    transform: scale(1.2);
}

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

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #F8FAFC;
    scroll-behavior: smooth;
}

/* Custom Color Classes */
.text-primary {
    color: #FF7A00 !important;
}

.text-secondary {
    color: #3B82F6 !important;
}

.text-accent {
    color: #10B981 !important;
}

.text-neutral {
    color: #6B7280 !important;
}

.bg-primary {
    background-color: #FF7A00 !important;
}

.bg-secondary {
    background-color: #3B82F6 !important;
}

.bg-accent {
    background-color: #10B981 !important;
}

.bg-background {
    background-color: #F8FAFC !important;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1F2937;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #FF7A00, #FF8C1A);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(255, 122, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E06600, #FF7A00);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.3);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #3B82F6, #4F90F7);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #059669, #10B981);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #FF7A00;
    padding: 12px 24px;
    border: 2px solid #FF7A00;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #FF7A00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.2);
    text-decoration: none;
}

/* Enhanced Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

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

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Enhanced Navigation Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1F2937;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #6B7280;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FF7A00;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #FF7A00;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Enhanced Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(135deg, #FF7A00, #3B82F6);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Enhanced Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Enhanced Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Footer Styles */
.footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF7A00;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Media Queries for Enhanced Responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-accent,
    .btn-outline {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .btn-primary,
    .btn-secondary,
    .btn-accent,
    .btn-outline {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Accessibility Enhancements */
.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-visible:focus {
    outline: 2px solid #FF7A00;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-accent {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Image Protection - Prevent Reverse Image Search */
.protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

/* Wrapper for protected images */
.image-protection-wrapper {
    position: relative;
    overflow: hidden;
}

.image-protection-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: all;
    z-index: 10;
}

/* Prevent dragging on all images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}
