/* ==========================================================================
   Mobile-First Responsive Styles for StorageOptimizer Landing Page
   ========================================================================== */

/* ==========================================================================
   Base Mobile Styles (< 576px)
   ========================================================================== */

/* Typography scaling */
.cs_fs_64 {
    font-size: 32px !important;
    line-height: 1.2;
}

.cs_fs_48 {
    font-size: 28px !important;
    line-height: 1.3;
}

.cs_fs_36 {
    font-size: 24px !important;
}

.cs_fs_28 {
    font-size: 20px !important;
}

/* Section spacing reduction for mobile */
.cs_height_120 {
    height: 60px !important;
}

.cs_height_80 {
    height: 40px !important;
}

/* Hero section mobile */
.cs_hero_text {
    padding: 0 15px;
}

.cs_hero_title {
    margin-bottom: 15px !important;
}

.cs_hero_desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
}

/* Buttons stack on mobile */
.cs_btns_group {
    flex-direction: column;
    gap: 12px !important;
}

.cs_btns_group .cs_btn {
    width: 100%;
    justify-content: center;
}

/* Trust indicators wrap nicely */
.cs_hero_trust_indicators .d-flex {
    gap: 15px !important;
}

.cs_hero_trust_indicators .trust-item {
    flex: 0 0 100%;
    justify-content: center;
}

/* Cost comparison section mobile */
.cost-comparison-item .cs_fs_64 {
    font-size: 36px !important;
}

.vs-badge {
    margin: 20px 0;
}

/* Problem/Solution cards */
.cs_iconbox_content {
    padding: 20px !important;
}

.icon-circle {
    width: 60px !important;
    height: 60px !important;
}

.icon-circle i {
    font-size: 28px !important;
}

/* Calculator mobile */
.calculator-inputs,
.calculator-results {
    margin-bottom: 30px;
}

.preset-buttons .d-flex {
    flex-direction: column;
}

.preset-btn {
    width: 100%;
    margin-bottom: 8px;
}

/* Storage breakdown bar legend */
.storage-breakdown .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Savings highlight box */
.savings-highlight-box .cs_fs_48 {
    font-size: 32px !important;
}

.savings-highlight-box .d-flex {
    flex-direction: column;
    gap: 8px !important;
}

/* Testimonials */
.testimonial-metric .metric-badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

/* Registration form */
.cs_white_bg.cs_radius_20 {
    padding: 20px !important;
}

/* FAQ items */
.cs_faq_title {
    font-size: 16px !important;
}

/* Footer padding for sticky CTA */
body {
    padding-bottom: 70px;
}

/* ==========================================================================
   Small devices (landscape phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
    .cs_fs_64 {
        font-size: 40px !important;
    }

    .cs_fs_48 {
        font-size: 32px !important;
    }

    .cs_btns_group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cs_btns_group .cs_btn {
        width: auto;
    }

    .cs_hero_trust_indicators .trust-item {
        flex: 0 0 auto;
    }

    .preset-buttons .d-flex {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .preset-btn {
        width: auto;
        margin-bottom: 0;
    }

    body {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Medium devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
    .cs_fs_64 {
        font-size: 48px !important;
    }

    .cs_fs_48 {
        font-size: 38px !important;
    }

    .cs_height_120 {
        height: 80px !important;
    }

    .cs_height_80 {
        height: 60px !important;
    }

    .cs_hero_desc {
        font-size: 16px !important;
    }

    .cost-comparison-item .cs_fs_64 {
        font-size: 48px !important;
    }

    .icon-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .icon-circle i {
        font-size: 32px !important;
    }

    .storage-breakdown .d-flex.justify-content-between {
        flex-direction: row;
        align-items: center;
    }

    .savings-highlight-box .cs_fs_48 {
        font-size: 40px !important;
    }

    .savings-highlight-box .d-flex {
        flex-direction: row;
    }

    .cs_white_bg.cs_radius_20 {
        padding: 30px !important;
    }
}

/* ==========================================================================
   Large devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    .cs_fs_64 {
        font-size: 56px !important;
    }

    .cs_fs_48 {
        font-size: 44px !important;
    }

    .cs_height_120 {
        height: 100px !important;
    }

    .cs_height_80 {
        height: 70px !important;
    }

    .cost-comparison-item .cs_fs_64 {
        font-size: 56px !important;
    }

    .icon-circle {
        width: 80px !important;
        height: 80px !important;
    }

    .icon-circle i {
        font-size: 36px !important;
    }

    .savings-highlight-box .cs_fs_48 {
        font-size: 48px !important;
    }

    .cs_white_bg.cs_radius_20 {
        padding: 40px !important;
    }
}

/* ==========================================================================
   Extra large devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    .cs_fs_64 {
        font-size: 64px !important;
    }

    .cs_fs_48 {
        font-size: 48px !important;
    }

    .cs_height_120 {
        height: 120px !important;
    }

    .cs_height_80 {
        height: 80px !important;
    }

    .cost-comparison-item .cs_fs_64 {
        font-size: 64px !important;
    }
}

/* ==========================================================================
   Sticky Mobile CTA
   ========================================================================== */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #146c43 0%, #198754 100%);
    padding: 12px 15px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
}

.sticky-mobile-cta .cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.sticky-mobile-cta .cta-text {
    color: white;
    font-size: 13px;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.sticky-mobile-cta .cta-text strong {
    display: block;
    font-size: 14px;
}

.sticky-mobile-cta .cta-button {
    background: #d1e7dd;
    color: #146c43;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-mobile-cta .cta-button:hover {
    background: white;
    transform: scale(1.02);
}

.sticky-mobile-cta .close-btn {
    position: absolute;
    top: -10px;
    right: 10px;
    background: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    color: #666;
}

/* Show sticky CTA only on mobile */
@media (max-width: 767px) {
    .sticky-mobile-cta {
        display: block;
    }
}

/* ==========================================================================
   Touch-friendly improvements
   ========================================================================== */
@media (max-width: 991px) {
    /* Larger tap targets */
    .cs_btn {
        min-height: 48px;
        padding: 14px 24px !important;
    }

    /* Better spacing for touch */
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Card hover effects disabled on touch */
    .cs_iconbox:hover .cs_iconbox_content,
    .cost-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Landscape phone optimizations
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .cs_hero {
        min-height: auto;
        padding: 40px 0;
    }

    .cs_height_120 {
        height: 40px !important;
    }

    .cs_hero_banner_wrapper {
        display: none;
    }
}

/* ==========================================================================
   High DPI / Retina optimizations
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cs_btn,
    .preset-btn,
    .metric-badge {
        -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;
    }

    .sticky-mobile-cta {
        transition: none;
    }

    .wow {
        animation: none !important;
        visibility: visible !important;
    }
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
    .sticky-mobile-cta,
    .cs_scrollup,
    .cs_preloader {
        display: none !important;
    }

    .cs_hero {
        background: #198754 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
