/* ====================================
   Responsive Design - All Devices
   ==================================== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    
    .hero-title {
        font-size: 44px;
    }
    
    .features-grid,
    .offers-grid {
        gap: 20px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    section {
        padding: 60px 0;
    }
    
    /* Header */
    .main-navigation {
        position: static;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    #primary-menu.toggled-on {
        display: block;
    }
    
    #primary-menu > li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    #primary-menu > li:last-child {
        border-bottom: none;
    }
    
    #primary-menu > li > a {
        padding: 15px 0;
    }
    
    #primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        display: none;
    }
    
    #primary-menu .menu-item-has-children:hover .sub-menu {
        display: block;
    }
    
    .header-cta {
        margin: 15px 0 0;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-trust {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Offers Grid */
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Calculator Section */
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-info {
        text-align: center;
    }
    
    .calculator-info ul {
        display: inline-block;
        text-align: left;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    
    .container {
        padding: 0 15px;
    }
    
    /* Tab Headers */
    .tab-headers {
        flex-wrap: wrap;
        gap: 10px;
        border-bottom: none;
    }
    
    .tab-header {
        flex: 1 1 calc(50% - 5px);
        padding: 10px 15px;
        font-size: 14px;
        background: var(--white);
        border-radius: var(--border-radius);
    }
    
    .tab-header.active:after {
        display: none;
    }
    
    /* Comparison Table */
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .comparison-table td,
    .comparison-table th {
        white-space: nowrap;
    }
    
    .bank-cell {
        flex-direction: row;
        align-items: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px;
    }
    
    /* Offers Grid */
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Calculator Box */
    .calculator-box {
        padding: 25px;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .result-item strong {
        font-size: 20px;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget .widget-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Mobile (375px to 575px) */
@media (max-width: 575px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
    
    section {
        padding: 40px 0;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .trust-item {
        font-size: 14px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* Tab Headers */
    .tab-header {
        flex: 1 1 100%;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Calculator */
    .calculator-box {
        padding: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .input-with-symbol input {
        padding: 12px 35px 12px 25px;
        font-size: 14px;
    }
    
    /* Offers */
    .offer-card {
        padding: 25px 20px;
    }
    
    .offer-bank-logo {
        height: 50px;
    }
    
    .offer-features li {
        font-size: 13px;
    }
    
    /* Blog */
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 13px;
    }
    
    .blog-meta {
        font-size: 12px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 28px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .cta-features span {
        font-size: 14px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 40px 0 20px;
    }
    
    .footer-widget .widget-title {
        font-size: 16px;
    }
    
    .footer-menu a {
        font-size: 13px;
    }
    
    .contact-info li {
        font-size: 13px;
    }
    
    .footer-disclaimer {
        font-size: 11px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-trust-badges {
        gap: 10px;
    }
    
    .footer-trust-badges img {
        height: 25px;
    }
    
    .trust-badge-text {
        font-size: 11px;
    }
}

/* Small Mobile (below 375px) */
@media (max-width: 374px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .calculator-result {
        padding: 20px;
    }
    
    .result-item {
        font-size: 14px;
    }
    
    .result-item strong {
        font-size: 18px;
    }
    
    .footer-trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* High Resolution Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 58px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
}

/* Landscape Mode */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .modal .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .calculator-section,
    .cta-section,
    .whatsapp-float,
    .back-to-top,
    .site-header,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
}