/* 
Etahelp Responsive Design System
Mobile-First, Utility-First Approach
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Breakpoints as custom properties */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    
    /* Container widths */
    --container-xs: 100%;
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
    
    /* Spacing scale (8px base) */
    --space-unit: 0.5rem;    /* 8px */
    --space-0: 0;
    --space-1: calc(var(--space-unit) * 0.5);  /* 4px */
    --space-2: var(--space-unit);              /* 8px */
    --space-3: calc(var(--space-unit) * 1.5);  /* 12px */
    --space-4: calc(var(--space-unit) * 2);    /* 16px */
    --space-5: calc(var(--space-unit) * 2.5);  /* 20px */
    --space-6: calc(var(--space-unit) * 3);    /* 24px */
    --space-8: calc(var(--space-unit) * 4);    /* 32px */
    --space-10: calc(var(--space-unit) * 5);   /* 40px */
    --space-12: calc(var(--space-unit) * 6);   /* 48px */
    --space-16: calc(var(--space-unit) * 8);   /* 64px */
    --space-20: calc(var(--space-unit) * 10);  /* 80px */
    --space-24: calc(var(--space-unit) * 12);  /* 96px */
    
    /* Typography scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Border radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 1rem;     /* 16px */
    --radius-xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
}

/* ==========================================================================
   2. CONTAINER SYSTEM
   ========================================================================== */

.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--space-4);
}

/* Responsive container widths */
@media (min-width: 576px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--container-2xl);
    }
}

/* Fluid container for full-width sections */
.container-fluid {
    width: 100%;
    padding-inline: var(--space-4);
}

/* ==========================================================================
   3. RESPONSIVE GRID SYSTEM (CSS Grid based)
   ========================================================================== */

.grid {
    display: grid;
    gap: var(--space-6);
}

/* Auto-fit columns */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Auto-fill columns */
.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Responsive columns */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive column spans */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Responsive column start/end */
.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-end-1 { grid-column-end: 1; }
.col-end-2 { grid-column-end: 2; }
.col-end-3 { grid-column-end: 3; }
.col-end-4 { grid-column-end: 4; }

/* ==========================================================================
   4. RESPONSIVE FLEXBOX UTILITIES
   ========================================================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Direction */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }

/* Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

/* Justify content */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* Align items */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

/* Align self */
.self-auto { align-self: auto; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }

/* Flex basis */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

/* Gap utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
   5. RESPONSIVE SPACING (Padding & Margin)
   ========================================================================== */

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-0 { padding-inline: 0; }
.px-1 { padding-inline: var(--space-1); }
.px-2 { padding-inline: var(--space-2); }
.px-3 { padding-inline: var(--space-3); }
.px-4 { padding-inline: var(--space-4); }
.px-5 { padding-inline: var(--space-5); }
.px-6 { padding-inline: var(--space-6); }
.px-8 { padding-inline: var(--space-8); }

.py-0 { padding-block: 0; }
.py-1 { padding-block: var(--space-1); }
.py-2 { padding-block: var(--space-2); }
.py-3 { padding-block: var(--space-3); }
.py-4 { padding-block: var(--space-4); }
.py-5 { padding-block: var(--space-5); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-auto { margin: auto; }

.mx-0 { margin-inline: 0; }
.mx-1 { margin-inline: var(--space-1); }
.mx-2 { margin-inline: var(--space-2); }
.mx-3 { margin-inline: var(--space-3); }
.mx-4 { margin-inline: var(--space-4); }
.mx-5 { margin-inline: var(--space-5); }
.mx-6 { margin-inline: var(--space-6); }
.mx-8 { margin-inline: var(--space-8); }
.mx-auto { margin-inline: auto; }

.my-0 { margin-block: 0; }
.my-1 { margin-block: var(--space-1); }
.my-2 { margin-block: var(--space-2); }
.my-3 { margin-block: var(--space-3); }
.my-4 { margin-block: var(--space-4); }
.my-5 { margin-block: var(--space-5); }
.my-6 { margin-block: var(--space-6); }
.my-8 { margin-block: var(--space-8); }
.my-auto { margin-block: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-auto { margin-bottom: auto; }

/* ==========================================================================
   6. RESPONSIVE TYPOGRAPHY
   ========================================================================== */

/* Text sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* Line heights */
.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Font weights */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ==========================================================================
   7. RESPONSIVE DISPLAY UTILITIES
   ========================================================================== */

/* Display properties */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Responsive visibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINT UTILITIES
   ========================================================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    
    .sm\:flex-row { flex-direction: row; }
    .sm\:flex-col { flex-direction: column; }
    
    .sm\:text-lg { font-size: var(--text-lg); }
    .sm\:text-xl { font-size: var(--text-xl); }
    
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    
    .md\:col-span-2 { grid-column: span 2; }
    .md\:col-span-3 { grid-column: span 3; }
    .md\:col-span-4 { grid-column: span 4; }
    
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    
    .md\:text-xl { font-size: var(--text-xl); }
    .md\:text-2xl { font-size: var(--text-2xl); }
    .md\:text-3xl { font-size: var(--text-3xl); }
    
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-3 { grid-column: span 3; }
    .lg\:col-span-4 { grid-column: span 4; }
    
    .lg\:text-2xl { font-size: var(--text-2xl); }
    .lg\:text-3xl { font-size: var(--text-3xl); }
    .lg\:text-4xl { font-size: var(--text-4xl); }
    
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    
    .xl\:text-3xl { font-size: var(--text-3xl); }
    .xl\:text-4xl { font-size: var(--text-4xl); }
    .xl\:text-5xl { font-size: var(--text-5xl); }
}

/* ==========================================================================
   9. RESPONSIVE COMPONENT ADJUSTMENTS
   ========================================================================== */

/* Navigation */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--neutral-white);
        flex-direction: column;
        padding: var(--space-8);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero sections */
@media (max-width: 767px) {
    .hero-title {
        font-size: var(--text-3xl);
        line-height: var(--leading-tight);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Cards and grids */
@media (max-width: 767px) {
    .grid-auto-fit,
    .grid-auto-fill {
        grid-template-columns: 1fr;
    }
    
    .card,
    .value-card,
    .package-card,
    .testimonial-card {
        margin-bottom: var(--space-6);
    }
}

/* Forms */
@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    input, select, textarea {
        font-size: var(--text-base);
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Tables */
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* ==========================================================================
   10. TOUCH-FRIENDLY INTERACTIONS
   ========================================================================== */

/* Minimum tap target size */
.tap-target {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent zoom on input focus on iOS */
@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* Touch-friendly buttons */
.btn-touch {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
}

/* Swipe gestures */
.swipe-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.swipe-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* ==========================================================================
   11. REDUCED MOTION PREFERENCES
   ========================================================================== */

@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;
    }
}

/* ==========================================================================
   12. DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --neutral-white: #1a1a1a;
        --neutral-light: #2d2d2d;
        --neutral-gray: #a0a0a0;
        --neutral-dark: #f0f0f0;
    }
    
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .card,
    .value-card,
    .package-card {
        background-color: var(--neutral-light);
        border-color: #3a3a3a;
    }
}

/* ==========================================================================
   13. PRINT STYLES
   ========================================================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   14. HIGH CONTRAST MODE SUPPORT
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --accent-gold: #ffd700;
        --success-green: #008000;
        --error-red: #ff0000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   15. UTILITY CLASSES FOR SPECIFIC DEVICES
   ========================================================================== */

/* iPhone X and newer notch support */
@supports (padding: max(0px)) {
    .safe-area-inset-top {
        padding-top: max(var(--space-4), env(safe-area-inset-top));
    }
    
    .safe-area-inset-bottom {
        padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
    }
    
    .safe-area-inset-left {
        padding-left: max(var(--space-4), env(safe-area-inset-left));
    }
    
    .safe-area-inset-right {
        padding-right: max(var(--space-4), env(safe-area-inset-right));
    }
}

/* Foldable devices */
@media (spanning: single-fold-vertical) {
    .foldable-padding {
        padding: var(--space-4) env(fold-left) var(--space-4) env(fold-right);
    }
}

/* ==========================================================================
   16. PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Will-change hints */
.performance-optimize {
    will-change: transform, opacity;
}

/* Content-visibility for off-screen content */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Optimize scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ==========================================================================
   17. ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Focus styles */
.focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to main content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 9999;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* ARIA live regions */
.aria-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   18. LAYOUT PATTERNS
   ========================================================================== */

/* Sidebar layout */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .layout-sidebar {
        grid-template-columns: 250px 1fr;
    }
}

/* Split layout */
.layout-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .layout-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Holy grail layout */
.layout-holy-grail {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* Masonry layout */
.layout-masonry {
    columns: 1;
    column-gap: var(--space-6);
}

@media (min-width: 768px) {
    .layout-masonry {
        columns: 2;
    }
}

@media (min-width: 992px) {
    .layout-masonry {
        columns: 3;
    }
}

.layout-masonry > * {
    break-inside: avoid;
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   19. RESPONSIVE ORDERING
   ========================================================================== */

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }
.order-first { order: -9999; }
.order-last { order: 9999; }

@media (min-width: 768px) {
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:order-3 { order: 3; }
    .md\:order-4 { order: 4; }
    .md\:order-5 { order: 5; }
    .md\:order-6 { order: 6; }
    .md\:order-first { order: -9999; }
    .md\:order-last { order: 9999; }
}

/* ==========================================================================
   20. CUSTOM RESPONSIVE HELPERS
   ========================================================================== */

/* Aspect ratios */
.aspect-square { aspect-ratio: 1; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-portrait { aspect-ratio: 3/4; }
.aspect-landscape { aspect-ratio: 4/3; }

/* Object fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-fill { object-fit: fill; }
.object-scale-down { object-fit: scale-down; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* Border */
.border-0 { border: 0; }
.border-1 { border: 1px solid; }
.border-2 { border: 2px solid; }
.border-4 { border: 4px solid; }

/* Rounded corners */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-none { box-shadow: none; }






/* ==========================================================================
   RESPONSIVE STYLES FOR SPECIFIC HTML COMPONENTS
   ========================================================================== */

/* Base reset for components */
.timeline-section,
.value-grid,
.packages-preview,
.featured-testimonial,
.final-cta,
.footer {
    width: 100%;
}

/* --------------------------------------------------------------------------
   1. TIMELINE SECTION
   -------------------------------------------------------------------------- */
.timeline-section {
    padding: 2rem 0;
    overflow: hidden;
}

.timeline-slider {
    position: relative;
    padding: 0 1rem;
}

.timeline-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    transition: transform 0.3s ease;
}

/* Mobile: 1 item takes full width */
.timeline-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0.5rem;
}

.timeline-image {
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-caption {
    padding: 1rem;
    margin-top: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-caption .before {
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.timeline-caption .after {
    color: #38a169;
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.timeline-nav.prev {
    left: 0.5rem;
}

.timeline-nav.next {
    right: 0.5rem;
}

/* Tablet: 2 items */
@media (min-width: 768px) {
    .timeline-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    .timeline-image {
        height: 250px;
    }
    .timeline-nav {
        display: flex;
    }
}

/* Desktop: 4 items */
@media (min-width: 1200px) {
    .timeline-item {
        flex: 0 0 calc(25% - 1.125rem);
        min-width: calc(25% - 1.125rem);
    }
    .timeline-image {
        height: 300px;
    }
}

/* --------------------------------------------------------------------------
   2. VALUE GRID
   -------------------------------------------------------------------------- */
.value-grid .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.value-icon {
    font-size: 2rem;
    color: #3182ce;
    margin-bottom: 1rem;
}

.value-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid #e2e8f0;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-name {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Tracker Preview */
.tracker-preview {
    background: #f7fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tracker-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
}

.tracker-id {
    font-size: 0.75rem;
    color: #718096;
    font-family: monospace;
}

.tracker-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tracker-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
}

.tracker-step.active {
    border-color: #38a169;
    background: #f0fff4;
}

.tracker-step.current {
    border-color: #3182ce;
    background: #ebf8ff;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.tracker-step.active .step-number {
    background: #38a169;
    color: white;
}

.tracker-step.current .step-number {
    background: #3182ce;
    color: white;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .value-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .value-grid .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   3. PACKAGES PREVIEW
   -------------------------------------------------------------------------- */
.package-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.package-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
}

.package-card.popular {
    border-color: #3182ce;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3182ce;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.package-price .amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
}

.package-price .note {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.package-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.package-features i.fa-check {
    color: #38a169;
}

.package-features i.fa-times {
    color: #e53e3e;
}

.package-footer {
    text-align: center;
}

.government-fee {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border-color: #3182ce;
    color: #3182ce;
}

.btn-outline:hover {
    background: #3182ce;
    color: white;
}

.btn-primary {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.btn-primary:hover {
    background: #2c5282;
    border-color: #2c5282;
}

.btn-secondary {
    background: #38a169;
    color: white;
    border-color: #38a169;
}

.btn-secondary:hover {
    background: #2f855a;
    border-color: #2f855a;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Mobile: Full width buttons */
@media (max-width: 767px) {
    .btn {
        width: 100%;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .package-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .package-card.popular {
        grid-column: span 2;
    }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .package-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .package-card.popular {
        grid-column: span 1;
    }
}

/* --------------------------------------------------------------------------
   4. TESTIMONIAL
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-image {
    width: 100%;
    height: 300px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 1.5rem;
}

.testimonial-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fff4;
    color: #38a169;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.625;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.testimonial-name {
    font-weight: 600;
    color: #2d3748;
}

.testimonial-location {
    color: #718096;
    font-size: 0.875rem;
}

/* Tablet+: Side by side layout */
@media (min-width: 768px) {
    .testimonial-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-image {
        height: 100%;
    }
    .testimonial-content {
        padding: 2rem;
    }
}

/* --------------------------------------------------------------------------
   5. FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
    padding: 3rem 0;
    background: #2d3748;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #a0aec0;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Tablet+: Horizontal buttons */
@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: #1a202c;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 1rem;
}

.logo-text {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    display: block;
    font-size: 0.875rem;
    color: #a0aec0;
}

.footer-description {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.625;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: #3182ce;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.5rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.copyright {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-notes {
    color: #718096;
    font-size: 0.75rem;
    line-height: 1.625;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   7. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.section-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a202c;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 2.5rem;
}

/* Responsive typography */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .cta-title {
        font-size: 1.5rem;
    }
    .cta-subtitle {
        font-size: 1rem;
    }
    .testimonial-quote {
        font-size: 1rem;
    }
    .package-price .amount {
        font-size: 1.875rem;
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .timeline-image {
        height: 150px;
    }
    .testimonial-image {
        height: 200px;
    }
}






/* ==========================================================================
   FEATURED TESTIMONIAL COMPONENT STYLES
   ========================================================================== */

.featured-testimonial {
    padding: var(--space-12) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.testimonial-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimonial-content {
    padding: var(--space-8);
}

.testimonial-header h3 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: var(--space-2);
}

.testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.occupation,
.package {
    font-size: var(--text-sm);
    color: #718096;
    background: #f7fafc;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #f0fff4;
    color: #38a169;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.approval-badge i {
    font-size: var(--text-base);
}

.testimonial-quote {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: #4a5568;
    margin-bottom: var(--space-8);
    font-style: italic;
    position: relative;
    padding-left: var(--space-6);
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.75rem;
    font-size: 3rem;
    color: #e2e8f0;
    font-family: serif;
    line-height: 1;
}

.testimonial-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid #e2e8f0;
    gap: var(--space-4);
}

.testimonial-name {
    font-weight: 600;
    color: #2d3748;
    font-size: var(--text-base);
}

.testimonial-location {
    color: #718096;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.testimonial-location::before {
    content: "→";
    color: #3182ce;
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR TESTIMONIAL
   ========================================================================== */

/* Mobile: 0-767px */
@media (max-width: 767px) {
    .featured-testimonial {
        padding: var(--space-8) 0;
    }
    
    .testimonial-content {
        padding: var(--space-6);
    }
    
    .testimonial-header h3 {
        font-size: var(--text-2xl);
    }
    
    .testimonial-meta {
        gap: var(--space-2);
    }
    
    .occupation,
    .package {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    .testimonial-quote {
        font-size: var(--text-base);
        padding-left: var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .testimonial-quote::before {
        font-size: 2.5rem;
        top: -0.5rem;
    }
}

/* Tablet: 768px and up */
@media (min-width: 768px) {
    .testimonial-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .testimonial-image {
        height: 100%;
        min-height: 400px;
    }
    
    .testimonial-content {
        padding: var(--space-8);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .testimonial-quote {
        padding-left: var(--space-8);
    }
    
    .testimonial-quote::before {
        font-size: 4rem;
        left: var(--space-2);
        top: -1rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .featured-testimonial {
        padding: var(--space-16) 0;
    }
    
    .testimonial-card {
        grid-template-columns: 40% 60%;
        max-width: 1000px;
    }
    
    .testimonial-content {
        padding: var(--space-10);
    }
    
    .testimonial-header h3 {
        font-size: var(--text-4xl);
    }
    
    .testimonial-quote {
        font-size: var(--text-xl);
        line-height: var(--leading-loose);
    }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
    .testimonial-card {
        max-width: 1100px;
    }
}

/* ==========================================================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ========================================================================== */

/* Small phones: 360px and below */
@media (max-width: 360px) {
    .testimonial-image {
        height: 250px;
    }
    
    .testimonial-content {
        padding: var(--space-4);
    }
    
    .testimonial-header h3 {
        font-size: var(--text-xl);
    }
    
    .testimonial-meta {
        gap: var(--space-2);
    }
    
    .occupation,
    .package {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    .testimonial-quote {
        font-size: var(--text-sm);
        padding-left: var(--space-3);
    }
    
    .testimonial-quote::before {
        font-size: 2rem;
        top: -0.25rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .testimonial-card {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .testimonial-image {
        height: 200px;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT FOR TESTIMONIAL
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .testimonial-card {
        background: #2d3748;
    }
    
    .testimonial-header h3,
    .testimonial-name {
        color: #f7fafc;
    }
    
    .testimonial-quote {
        color: #e2e8f0;
    }
    
    .testimonial-quote::before {
        color: #4a5568;
    }
    
    .occupation,
    .package {
        background: #4a5568;
        color: #cbd5e0;
    }
    
    .testimonial-footer {
        border-top-color: #4a5568;
    }
    
    .testimonial-location {
        color: #cbd5e0;
    }
    
    .approval-badge {
        background: #22543d;
        color: #9ae6b4;
    }
}

/* ==========================================================================
   PRINT STYLES FOR TESTIMONIAL
   ========================================================================== */

@media print {
    .featured-testimonial {
        background: white !important;
        padding: var(--space-4) 0 !important;
    }
    
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        page-break-inside: avoid;
    }
    
    .testimonial-image {
        display: none;
    }
    
    .testimonial-card {
        display: block !important;
    }
    
    .testimonial-content {
        padding: var(--space-4) !important;
    }
    
    .approval-badge {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS FOR TESTIMONIAL
   ========================================================================== */

/* High contrast mode */
@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid #000;
    }
    
    .testimonial-footer {
        border-top: 2px solid #000;
    }
    
    .approval-badge {
        border: 1px solid #000;
    }
    
    .testimonial-quote::before {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none;
    }
}


