/* Responsive styles for Lion Finance Design 3 */

/* Mobile First Approach */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .btn-mobile {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .card {
        padding: 16px;
    }
    
    .nav-height {
        height: 60px;
    }
    
    .hero-section {
        padding-top: 60px;
        min-height: 70vh;
    }
    
    .grid-mobile {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .text-mobile-center {
        text-align: center;
    }
    
    .space-mobile {
        margin-bottom: 20px;
    }
}

/* Small devices (landscape phones, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .card {
        padding: 20px;
    }
    
    .grid-tablet {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .nav-height {
        height: 70px;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: 75vh;
    }
}

/* Medium devices (tablets, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.375rem !important;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .grid-tablet-lg {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .nav-height {
        height: 80px;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: 80vh;
    }
}

/* Large devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .grid-desktop {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .nav-height {
        height: 80px;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: 85vh;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem !important;
    }
    
    .container-xl {
        max-width: 1400px;
    }
    
    .section-padding {
        padding: 100px 0;
    }
    
    .grid-xl {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* Navigation responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
    
    .mobile-menu.hidden {
        display: none;
    }
    
    .mobile-menu-item {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f3f4f6;
        transition: background-color 0.3s ease;
    }
    
    .mobile-menu-item:hover {
        background-color: #f9fafb;
    }
    
    .mobile-menu-item:last-child {
        border-bottom: none;
    }
}

@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Hero section responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 40px;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
}

/* Services section responsive */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* About section responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Contact section responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
}

@media (min-width: 769px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

/* Footer responsive */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-links {
        grid-column: 1;
    }
    
    .footer-contact {
        grid-column: 1;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
}

/* Form responsive */
@media (max-width: 480px) {
    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (min-width: 481px) {
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Typography responsive */
@media (max-width: 480px) {
    .heading-xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .heading-lg {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .heading-md {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .text-base {
        font-size: 0.875rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .heading-xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .heading-lg {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .heading-md {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

@media (min-width: 769px) {
    .heading-xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .heading-lg {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .heading-md {
        font-size: 1.875rem;
        line-height: 1.3;
    }
}

/* Spacing responsive */
@media (max-width: 480px) {
    .space-y-mobile > * + * {
        margin-top: 1rem;
    }
    
    .space-x-mobile > * + * {
        margin-left: 1rem;
    }
    
    .p-mobile {
        padding: 1rem;
    }
    
    .px-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-mobile {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .m-mobile {
        margin: 1rem;
    }
    
    .mx-mobile {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .my-mobile {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Animation responsive */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-down,
    .animate-scale-in,
    .animate-bounce-soft {
        animation: none;
    }
    
    .fade-in-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
    
    .transition-all {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #000;
    }
    
    .form-input {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .auto-dark .card {
        background-color: #2a2a2a;
        border-color: #404040;
    }
    
    .auto-dark .form-input {
        background-color: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
}

/* Print responsive */
@media print {
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .nav-height {
        height: auto;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: #fff !important;
        color: #000 !important;
    }
    
    .text-white {
        color: #000 !important;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-down,
    .animate-scale-in,
    .animate-bounce-soft {
        animation: none;
    }
}
