/* Custom styles for Xclusive Agency website */

/* Navigation Links */
.nav-link {
    @apply text-warm-600 hover:text-primary-600 font-medium transition-colors duration-200 py-2 px-1 relative uppercase text-sm;
}

.nav-link.active {
    @apply text-primary-600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.mobile-nav-link {
    @apply text-warm-600 hover:text-primary-600 hover:bg-warm-50 block px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 uppercase;
}

.mobile-nav-link.active {
    @apply text-primary-600 bg-primary-50;
}

/* Header Shadow */
.header-scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

/* Pricing Cards */
.pricing-card {
    @apply bg-white border border-warm-200 rounded-3xl p-8 relative transition-all duration-300 hover:shadow-2xl hover:-translate-y-2;
}

.pricing-card.recommended {
    @apply border-primary-200 ring-2 ring-primary-500 shadow-xl scale-105;
}

.pricing-card.recommended::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0.15;
}

/* Badge styles */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold;
}

.badge-recommended {
    @apply bg-primary-100 text-primary-800;
}

.badge-new {
    @apply bg-green-100 text-green-800;
}

.badge-popular {
    @apply bg-purple-100 text-purple-800;
}

/* Buttons */
.btn {
    @apply inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-lg transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn-primary {
    @apply bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500 transform hover:-translate-y-0.5 hover:shadow-lg;
}

.btn-secondary {
    @apply bg-white text-primary-600 border-primary-600 hover:bg-primary-50 focus:ring-primary-500;
}

.btn-outline {
    @apply bg-transparent text-primary-600 border-2 border-primary-600 hover:bg-primary-600 hover:text-white focus:ring-primary-500 text-center;
}

/* Form Elements */
.form-input {
    @apply block w-full px-4 py-3 border border-warm-300 rounded-lg shadow-sm placeholder-warm-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors duration-200;
}

.form-textarea {
    @apply block w-full px-4 py-3 border border-warm-300 rounded-lg shadow-sm placeholder-warm-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors duration-200 resize-none;
}

.form-select {
    @apply block w-full px-4 py-3 pr-10 border border-warm-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors duration-200;
}

.form-checkbox {
    @apply h-4 w-4 text-primary-600 focus:ring-primary-500 border-warm-300 rounded transition-colors duration-200;
}

/* Error states */
.form-input.error,
.form-textarea.error,
.form-select.error {
    @apply border-red-300 focus:ring-red-500 focus:border-red-500;
}

.error-message {
    @apply text-red-600 text-sm mt-1;
}

/* Success states */
.form-input.success,
.form-textarea.success {
    @apply border-green-300 focus:ring-green-500 focus:border-green-500;
}

/* Loading states */
.btn.loading {
    @apply opacity-75 cursor-not-allowed;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal {
    @apply fixed inset-0 z-50 overflow-y-auto;
}

.modal-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 transition-opacity;
}

.modal-container {
    @apply flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0;
}

.modal-content {
    @apply inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full;
}

/* Pricing Toggle */
.pricing-toggle {
    @apply relative inline-flex items-center h-6 rounded-full w-11 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 transition-colors duration-300;
}

.pricing-toggle.active {
    @apply bg-primary-600;
}

.pricing-toggle:not(.active) {
    @apply bg-warm-300;
}

.pricing-toggle-dot {
    @apply inline-block h-4 w-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-300 ease-in-out;
}

.pricing-toggle.active .pricing-toggle-dot {
    @apply translate-x-5;
}

.pricing-toggle:not(.active) .pricing-toggle-dot {
    @apply translate-x-1;
}

/* FAQ Accordion */
.accordion-item {
    @apply border-b border-warm-200;
}

.accordion-button {
    @apply w-full px-0 py-6 text-left text-warm-900 hover:text-primary-600 focus:outline-none focus:text-primary-600 transition-colors duration-200;
}

.accordion-content {
    @apply pb-6 text-warm-600 leading-relaxed;
}

.accordion-icon {
    @apply w-5 h-5 text-warm-400 transition-transform duration-200;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    @apply transform rotate-180;
}

/* Case Study Charts */
.chart-container {
    @apply relative h-64 w-full;
}

/* Stats Cards */
.stats-card {
    @apply bg-white rounded-xl p-6 border border-warm-200 text-center transition-all duration-300 hover:shadow-lg;
}

.stats-number {
    @apply text-3xl font-bold text-primary-600 mb-2;
}

.stats-label {
    @apply text-warm-600 text-sm font-medium;
}

/* Timeline */
.timeline-item {
    @apply relative flex items-start;
}

.timeline-marker {
    @apply flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-center justify-center text-primary-600 font-semibold mr-6;
}

.timeline-content {
    @apply flex-1 pb-8;
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4rem;
    background-color: #e7e5e4;
}

/* Trust Indicators */
.trust-indicator {
    @apply flex items-center space-x-3 p-4 bg-warm-50 rounded-lg;
}

.trust-icon {
    @apply w-8 h-8 text-green-600 flex-shrink-0;
}

/* Testimonials */
.testimonial-card {
    @apply bg-white rounded-xl p-6 border border-warm-200 shadow-sm;
}

.testimonial-quote {
    @apply text-warm-700 italic mb-4;
}

.testimonial-author {
    @apply font-semibold text-warm-900;
}

.testimonial-role {
    @apply text-warm-600 text-sm;
}

/* Hover Effects */
.hover-lift {
    @apply transition-all duration-300 hover:-translate-y-1 hover:shadow-lg;
}

.hover-scale {
    @apply transition-transform duration-300 hover:scale-105;
}

/* Responsive Text */
@screen sm {
    .text-responsive-sm {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

@screen md {
    .text-responsive-md {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

@screen lg {
    .text-responsive-lg {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Focus states for accessibility */
.focus-visible:focus {
    @apply outline-none ring-2 ring-primary-500 ring-offset-2;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Section Headings */
.section-heading {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply border-2 border-primary-800;
    }
    
    .nav-link.active {
        @apply underline;
    }
}

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