/* ==========================================
   Trusteon Capital Solutions - Responsive CSS
   Mobile-First Responsive Design
   ========================================== */

/* ==========================================
   Tablet Landscape (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
    
    .offerings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .loans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   Tablet Portrait (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Header */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .btn-call {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text .tagline {
        font-size: 0.65rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 70vh;
        margin-top: 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Offerings */
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Loans */
    .loans-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* How It Works */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        margin: 20px auto 15px;
    }
    
    .step-icon i {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Buttons */
    .scroll-to-top,
    .live-chat-btn {
        right: 20px;
    }
    
    .live-chat-btn {
        bottom: 80px;
    }
}

/* ==========================================
   Mobile (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Header */
    .logo-container {
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text .tagline {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero-section {
        height: 60vh;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    /* About */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    /* Offerings */
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .offering-icon {
        width: 70px;
        height: 70px;
    }
    
    .offering-icon i {
        font-size: 2rem;
    }
    
    /* Loan Cards */
    .loan-card {
        margin-bottom: 20px;
    }
    
    .loan-icon {
        width: 70px;
        height: 70px;
    }
    
    .loan-icon i {
        font-size: 2rem;
    }
    
    /* Process */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon i {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .testimonial-quote {
        width: 50px;
        height: 50px;
        left: 20px;
    }
    
    .testimonial-quote i {
        font-size: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* Contact */
    .info-card {
        padding: 20px;
    }
    
    .info-card i {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        padding-top: 50px;
    }
    
    .footer-top {
        gap: 30px;
    }
    
    .footer-bottom {
        padding: 30px 0;
    }
    
    .license-img {
        max-width: 100px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .live-chat-btn {
        bottom: 75px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .live-chat-btn span {
        display: none;
    }
    
    .live-chat-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}

/* ==========================================
   Small Mobile (max-width: 360px)
   ========================================== */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .offering-card,
    .loan-card,
    .testimonial-card,
    .process-step {
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
}

/* ==========================================
   Landscape Orientation for Mobile
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    section {
        padding: 50px 0;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .header,
    .mobile-menu,
    .hero-section,
    .scroll-to-top,
    .live-chat-btn,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .parallax-bg,
    .section-overlay {
        display: none;
    }
    
    .footer {
        page-break-before: always;
    }
}

/* ==========================================
   High DPI / Retina Display Support
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .offering-icon,
    .loan-icon,
    .step-icon,
    .author-avatar {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================
   Reduced Motion for Accessibility
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}