/* Custom CSS for am:pm parking website */

/* Custom font configurations */
body {
    font-family: 'Mulish', sans-serif;
    scroll-behavior: smooth;
}

/* Letter spacing adjustment class */
.adjustLetterSpacing {
    letter-spacing: 2.2px;
}

/* Custom backdrop blur for hero section */
.hero-section {
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Smooth transitions for interactive elements only */
button, a, .faq-question, .card-hover {
    transition: all 0.3s ease-in-out;
}

/* Animation preparation for sections */
section:not(#hero):not(.hero-section) {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

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

/* Header optimization - always visible */
header {
    opacity: 1 !important;
    transform: none !important;
    will-change: transform;
    backface-visibility: hidden;
}

/* Hero section - always visible and no transitions */
.hero-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Hero section content - always visible */
.hero-section * {
    opacity: 1 !important;
}

/* Remove any section animation from header */
header.fade-in-up,
.hero-section.fade-in-up {
    opacity: 1 !important;
    transform: none !important;
}

/* Reduce animation on first load */
.hero-section {
    animation: none !important;
}

/* Optimize transforms for better performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f0d33e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c532;
}

/* FAQ Accordion styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    transform: translateY(-1px);
}

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

.faq-answer {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.faq-answer.hidden {
    max-height: 0;
    opacity: 0;
}

.faq-answer:not(.hidden) {
    max-height: 200px;
    opacity: 1;
}

/* Button hover effects */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

button:hover::before {
    width: 100%;
    height: 100%;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Form input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 211, 62, 0.1);
    border-color: #f0d33e;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f0d33e 0%, #e6c532 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation link hover effects */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0d33e;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Fix hero section alignment on mobile */
    .hero-section .max-w-2xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure proper container alignment on mobile */
    .hero-section .flex.flex-col.md\\:flex-row.items-end.justify-between {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Align buttons properly on mobile */
    .hero-section .flex.flex-col.md\\:flex-row.items-center.md\\:items-start {
        width: 100%;
        align-items: stretch;
    }
    
    /* Adjust padding for mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stack cards vertically on mobile */
    .grid {
        grid-template-columns: 1fr;
    }
    
        /* Reduce font sizes for mobile */
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
    
    /* News/Articles section mobile improvements */
    .news-featured-mobile {
        height: 400px !important;
    }
    
    .news-article-mobile {
        height: 280px !important;
    }
    
    /* Adjust news grid layout for mobile */
    .news-grid-mobile {
        flex-direction: column;
        gap: 2rem;
    }
    
    .news-side-articles-mobile {
        space-y: 2rem;
    }
    
    /* Maintain rounded corners on interaction for news cards */
    .news-featured-mobile:active,
    .news-featured-mobile:focus,
    .news-featured-mobile:hover,
    .news-article-mobile:active,
    .news-article-mobile:focus,
    .news-article-mobile:hover {
        border-radius: 1.5rem !important;
        outline: none !important;
    }
    
    /* Force rounded corners on all states */
    .news-featured-mobile *,
    .news-article-mobile * {
        border-radius: inherit !important;
    }
    
    /* Global fix for rounded corners on interaction */
    .rounded-3xl {
        border-radius: 1.5rem !important;
    }
    
    .rounded-3xl:active,
    .rounded-3xl:focus,
    .rounded-3xl:hover,
    .rounded-3xl:focus-visible {
        border-radius: 1.5rem !important;
        outline: none !important;
    }
    
    /* FAQ section - maintain rounded corners */
    .faq-item,
    .faq-item:active,
    .faq-item:focus,
    .faq-item:hover,
    .faq-item:focus-visible {
        border-radius: 1.5rem !important;
        outline: none !important;
    }
    
    .faq-question:active,
    .faq-question:focus,
    .faq-question:hover,
    .faq-question:focus-visible {
        border-radius: 1.5rem !important;
        outline: none !important;
    }
}

/* FAQ section - force rounded corners in all states */
.faq-item {
    border-radius: 1.5rem !important;
}

.faq-item,
.faq-item *,
.faq-item:active,
.faq-item:focus,
.faq-item:hover,
.faq-item:focus-visible,
.faq-item:focus-within,
.faq-item button,
.faq-item button:active,
.faq-item button:focus,
.faq-item button:hover,
.faq-item button:focus-visible,
.faq-question,
.faq-question:active,
.faq-question:focus,
.faq-question:hover,
.faq-question:focus-visible {
    border-radius: 1.5rem !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Global rounded corners fix for all elements */
.rounded-3xl,
.rounded-3xl *,
.rounded-3xl:active,
.rounded-3xl:focus,
.rounded-3xl:hover,
.rounded-3xl:focus-visible,
.rounded-3xl:focus-within {
    border-radius: 1.5rem !important;
    outline: none !important;
}

/* Ultra-specific fix for FAQ buttons losing rounded corners */
button.faq-question,
button.faq-question:active,
button.faq-question:focus,
button.faq-question:hover,
button.faq-question:focus-visible {
    border-radius: 1.5rem !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force all children to inherit border radius */
.faq-item > *,
.faq-item > * > *,
.faq-item > * > * > * {
    border-radius: inherit !important;
}

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

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

/* Testimonial card styles */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Star rating animation */
.star {
    transition: all 0.2s ease;
}

.star:hover {
    transform: scale(1.2);
}

/* Custom section dividers */
.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e3ed, transparent);
}

/* Footer background pattern animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Custom utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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