/* Custom CSS for Inbox Marketing KFT Website */
/* Tailwind CSS is the primary framework - this file contains only essential custom styles */

/* Root Variables for Brand Colors */
:root {
    --brand-blue: #1a365d;
    --brand-orange: #e53e3e;
    --brand-gray: #2d3748;
    --grid-base: 8px;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Custom Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), #f56565);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Custom Focus States for Accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.3);
}

/* Testimonial Carousel Animations */
.testimonial-slide {
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-slide:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* FAQ Accordion Animations */
.faq-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.faq-content.show {
    max-height: 200px;
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-toggle.active .faq-arrow {
    transform: rotate(180deg);
}

/* Logo Hover Effects */
.client-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Hero Section Gradient Enhancement */
.hero-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
}

/* Card Shadow Enhancement */
.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Enhancement */
.form-field {
    position: relative;
}

.form-field input:focus + label,
.form-field select:focus + label {
    color: var(--brand-blue);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Image Containers */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* 8pt Grid System Helper Classes */
.spacing-xs { margin: calc(var(--grid-base) * 1); }
.spacing-sm { margin: calc(var(--grid-base) * 2); }
.spacing-md { margin: calc(var(--grid-base) * 3); }
.spacing-lg { margin: calc(var(--grid-base) * 4); }
.spacing-xl { margin: calc(var(--grid-base) * 6); }
.spacing-2xl { margin: calc(var(--grid-base) * 8); }

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --brand-blue: #000080;
        --brand-orange: #cc0000;
        --brand-gray: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    .hover\:scale-105:hover {
        transform: none;
    }
    
    button, 
    .btn,
    a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Dark Mode Considerations (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Ready for future dark mode implementation */
    /* Currently maintaining light theme for brand consistency */
}

/* Component-Specific Enhancements */

/* Navigation Enhancements */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service Card Enhancements */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Image Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

/* Accessibility Improvements */
.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 for Better Keyboard Navigation */
.focus-visible:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}