/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE.CSS — Comprehensive Multi-Device Responsive System
   International Couriers Mancherial
   Covers: 320px → 480px → 640px → 768px → 900px → 1100px → 1280px+
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. BASE FLUID CONTAINERS ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    width: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal overflow at the root level */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 1280px  (Large tablets / small laptops)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .hero-logo-wrap {
        width: 300px;
        height: 300px;
    }

    .ring1 {
        width: 300px;
        height: 300px;
    }

    .ring2 {
        width: 250px;
        height: 250px;
    }

    .ring3 {
        width: 350px;
        height: 350px;
    }

    .hero-logo-img {
        width: 210px;
        height: 210px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 1100px  (Tablets landscape / small laptops)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {

    /* ── HERO ── */
    .hero-visual {
        display: none;
    }

    .hero-section {
        min-height: 100svh;
        padding: 100px clamp(16px, 4vw, 32px) 60px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        text-align: center;
    }

    .hero-actions,
    .hero-trust-badges {
        justify-content: center;
    }

    /* ── WHY US ── */
    .whyus-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* ── FOOTER ── */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* ── DASHBOARD ADMIN GRID ── */
    .admin-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 900px  (Tablets portrait / large phones)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* ── NAV ── */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 996;
        background: rgba(13, 13, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 32px 24px;
        border-bottom: none;
    }

    .nav-links.open {
        display: flex;
        animation: mobileNavIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes mobileNavIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links .nl {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 14px 32px;
        width: 100%;
        max-width: 320px;
        text-align: center;
        border-radius: 12px;
        border: 1px solid var(--dark-border);
    }

    .nav-links .btn-nav-login {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 14px 32px !important;
        border-radius: 50px !important;
        font-size: 1rem;
        margin-top: 8px;
    }

    .nav-hamburger {
        display: flex;
        z-index: 1000;
        position: relative;
    }

    /* Animate hamburger → X */
    .nav-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .home-nav .nav-inner {
        padding: 14px 20px;
    }

    /* ── DASHBOARD SIDEBAR ── */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 16px 80px;
    }

    .mobile-header {
        display: flex;
    }

    .user-profile-bar {
        top: 8px;
        right: 12px;
        padding: 6px 12px 6px 6px;
    }

    .user-fullname,
    .user-role {
        display: none;
    }

    /* ── LOGIN PAGE ── */
    .login-left {
        display: none;
    }

    .login-right {
        flex: 1;
        padding: 40px 24px;
    }

    /* ── CONTACT GRID ── */
    .contact-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* ── FOOTER ── */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 768px  (Tablets portrait / phones – mid range)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── NAV BRAND ── */
    .nb-main {
        font-size: 0.9rem;
    }

    /* ── HERO ── */
    .hero-section {
        padding: 90px 20px 52px;
        min-height: 100svh;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
        margin-bottom: 18px;
    }

    .hero-trust-badges {
        gap: 8px;
    }

    .htb {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* ── STATS ── */
    .stats-section {
        padding: 44px 0;
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-block {
        padding: 20px 16px;
    }

    .sb-value {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .sb-plus {
        font-size: 1.4rem;
    }

    .sb-label {
        font-size: 0.78rem;
    }

    .stat-divider {
        display: none;
    }

    /* ── SECTIONS ── */
    .services-section,
    .whyus-section,
    .home-contact-section {
        padding: 70px 0;
    }

    .home-track-section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* ── SERVICES GRID ── */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 22px 18px;
    }

    .sc-icon-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .sc-icon {
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.82rem;
    }

    /* ── TRACK CARD ── */
    .home-track-card {
        padding: 28px 20px;
        gap: 20px;
    }

    /* ── CONTACT INFO ── */
    .hci-item {
        padding: 14px 0;
        gap: 12px;
    }

    .hcg-form {
        padding: 24px 20px;
    }

    /* ── FOOTER ── */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-bottom: 36px;
    }

    /* ── DASHBOARD ── */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section-card {
        padding: 18px 16px;
    }

    .tracking-body {
        padding: 18px 16px;
    }

    .tracking-card-header {
        padding: 16px 18px;
    }

    /* ── FORM ROW ── */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Floating buttons */
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .fab {
        width: 50px;
        height: 50px;
    }

    .fab svg {
        width: 22px;
        height: 22px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 640px  (Phones – standard size)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ── NAV ── */
    .nav-logo img {
        width: 36px;
        height: 36px;
    }

    .nb-main {
        font-size: 0.82rem;
    }

    .nb-sub {
        font-size: 0.58rem;
        letter-spacing: 2px;
    }

    /* ── HERO ── */
    .hero-section {
        padding: 80px 16px 48px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-wa {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .hero-trust-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .htb {
        font-size: 0.7rem;
        padding: 4px 9px;
    }

    /* ── STATS ── */
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-block {
        padding: 18px 12px;
    }

    /* ── SERVICES ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* ── WHY US ── */
    .why-point {
        padding: 12px;
    }

    .wp-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    /* ── TRUST PANEL ── */
    .trust-panel {
        padding: 22px 18px;
    }

    /* ── TRACK CARD ── */
    .home-track-card {
        padding: 22px 16px;
    }

    .htc-route {
        gap: 10px;
    }

    .htc-point {
        font-size: 0.8rem;
    }

    /* ── CONTACT ── */
    .hcg-form {
        padding: 20px 16px;
    }

    .hci-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-wa-big,
    .btn-call-big {
        width: 100%;
        justify-content: center;
    }

    /* ── FOOTER ── */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 16px 0;
    }

    /* ── DASHBOARD ── */
    .main-content {
        padding: 72px 12px 80px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        gap: 8px;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .section-card {
        padding: 16px 14px;
        margin-bottom: 16px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Table: allow horizontal scroll – don't stretch */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 540px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    /* Admin tabs */
    .admin-tabs {
        flex-wrap: wrap;
        width: 100%;
    }

    .admin-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-overlay {
        padding: 12px;
    }

    .modal-box {
        max-height: 95vh;
    }

    .modal-body {
        padding: 18px 16px;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-action-row {
        flex-direction: column;
    }

    /* Tracking card */
    .tracking-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tracking-body {
        padding: 16px 14px;
    }

    .tracking-route {
        flex-wrap: wrap;
        gap: 8px;
    }

    .route-point {
        min-width: 100px;
    }

    .tracking-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Buttons */
    .btn-primary {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .filter-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
    }

    /* FAB tooltip hidden on mobile */
    .fab::after {
        display: none;
    }

    /* Login */
    .login-right {
        padding: 28px 16px;
    }

    .login-card-header h2 {
        font-size: 1.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 480px  (Small phones – iPhone SE, etc.)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* ── NAV ── */
    .home-nav .nav-inner {
        padding: 12px 16px;
    }

    .nav-logo img {
        width: 32px;
        height: 32px;
    }

    .nb-main {
        font-size: 0.78rem;
    }

    .nb-sub {
        display: none;
    }

    /* ── HERO ── */
    .hero-section {
        padding: 75px 14px 44px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8.5vw, 1.9rem);
    }

    .hero-desc {
        font-size: 0.875rem;
        margin-bottom: 22px;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }

    .btn-hero-primary,
    .btn-hero-wa {
        padding: 13px 16px;
        font-size: 0.9rem;
        border-radius: 40px;
    }

    .htb {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* ── STATS ── */
    .stats-section {
        padding: 36px 0;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-block {
        padding: 14px 10px;
    }

    .sb-value {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .sb-plus {
        font-size: 1.2rem;
    }

    .sb-label {
        font-size: 0.72rem;
        margin-top: 4px;
    }

    /* ── SECTIONS ── */
    .services-section,
    .whyus-section,
    .home-contact-section {
        padding: 56px 0;
    }

    .home-track-section {
        padding: 44px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .sh-chip {
        font-size: 0.7rem;
        padding: 5px 11px;
    }

    /* ── SERVICES ── */
    .service-card {
        padding: 18px 14px;
    }

    .sc-icon-wrap {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .sc-icon {
        font-size: 1.3rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .sc-features li {
        font-size: 0.77rem;
    }

    /* ── TRUST PANEL ── */
    .trust-panel {
        padding: 18px 14px;
    }

    .tp-header strong {
        font-size: 0.85rem;
    }

    .tp-header p {
        font-size: 0.72rem;
    }

    .tpr-stars {
        font-size: 0.88rem;
    }

    .tp-rating span {
        font-size: 0.75rem;
    }

    .cert-item {
        font-size: 0.78rem;
    }

    .testimonial p {
        font-size: 0.8rem;
    }

    .testimonial cite {
        font-size: 0.72rem;
    }

    /* ── TRACK CARD ── */
    .home-track-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .htc-route {
        flex-direction: column;
        gap: 8px;
    }

    .htc-line {
        height: 2px;
        width: 60px;
    }

    /* ── CONTACT ── */
    .hcg-form {
        padding: 18px 14px;
    }

    .hcg-form h3 {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hci-icon {
        font-size: 1.2rem;
        width: 36px;
    }

    .hci-item strong {
        font-size: 0.72rem;
    }

    .hci-item a,
    .hci-item p {
        font-size: 0.82rem;
    }

    /* ── FOOTER ── */
    .home-footer {
        padding: 44px 0 0;
    }

    .footer-top h4 {
        font-size: 0.78rem;
    }

    .footer-top a,
    .ft-contact p {
        font-size: 0.8rem;
    }

    /* ── DASHBOARD ── */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    .data-table {
        min-width: 460px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    /* Tracking details 1 col on very small */
    .tracking-details-grid {
        grid-template-columns: 1fr;
    }

    .route-city {
        font-size: 0.9rem;
    }

    /* Phase cards in modals */
    .phase-field-row {
        grid-template-columns: 1fr;
    }

    .phase-card-top {
        gap: 8px;
        padding: 10px 12px;
    }

    .phase-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .phase-icon {
        font-size: 1rem;
    }

    .phase-title {
        font-size: 0.82rem;
    }

    .phase-card-left {
        width: 26px;
    }

    .phase-step-num {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }

    /* Floating buttons – slightly smaller */
    .floating-actions {
        bottom: 16px;
        right: 14px;
        gap: 8px;
    }

    .fab {
        width: 46px;
        height: 46px;
    }

    .fab svg {
        width: 20px;
        height: 20px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 380px  (Very small phones – Galaxy A series, etc.)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {

    .hero-title {
        font-size: clamp(1.35rem, 9vw, 1.7rem);
    }

    .btn-hero-primary,
    .btn-hero-wa {
        font-size: 0.85rem;
        padding: 12px 14px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .sb-value {
        font-size: 1.6rem;
    }

    .services-section,
    .whyus-section,
    .home-contact-section {
        padding: 48px 0;
    }

    .service-card {
        padding: 14px 12px;
    }

    .hcg-form {
        padding: 14px 12px;
    }

    .trust-panel {
        padding: 14px 12px;
    }

    .nav-links .nl {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .section-card {
        padding: 14px 12px;
    }

    .modal-body {
        padding: 14px 12px;
    }

    .modal-header {
        padding: 14px 14px;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT: ≤ 320px  (Legacy / very small devices)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 320px) {
    .hero-section {
        padding: 70px 12px 40px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .btn-hero-primary,
    .btn-hero-wa {
        font-size: 0.82rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   TOUCH-DEVICE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover-only transforms on touch */
    .service-card:hover {
        transform: none;
    }

    .btn-hero-primary:hover,
    .btn-hero-wa:hover {
        transform: none;
    }

    .why-point:hover,
    .feature-item:hover {
        transform: none;
    }

    /* Make clickable areas larger */
    .nl {
        padding: 10px 16px;
    }

    .sc-cta {
        padding: 4px 0;
    }

    .nav-item {
        padding: 13px 16px;
    }

    .demo-item {
        padding: 10px 12px;
    }

    /* Scrollable table hint on touch */
    .table-wrapper::after {
        content: '← swipe to see more →';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: var(--text-secondary);
        padding: 6px 0;
        opacity: 0.6;
    }

    /* Remove fab tooltip on touch */
    .fab::after {
        display: none;
    }

    /* Better active states */
    .btn-hero-primary:active {
        opacity: 0.85;
    }

    .btn-hero-wa:active {
        opacity: 0.85;
    }

    .btn-wa-big:active {
        opacity: 0.85;
    }

    .btn-call-big:active {
        opacity: 0.85;
    }

    .nl:active {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ══════════════════════════════════════════════════════════════
   LANDSCAPE MOBILE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {

    .hero-section {
        min-height: auto;
        padding: 70px 24px 40px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .hero-badge {
        margin-bottom: 12px;
    }

    .hero-actions {
        margin-bottom: 16px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-hero-primary,
    .btn-hero-wa {
        width: auto;
    }

    .hero-trust-badges {
        display: none;
    }

    .hero-scroll-hint {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRINT MEDIA (basic)
   ══════════════════════════════════════════════════════════════ */
@media print {

    .home-nav,
    .floating-actions,
    .hero-scroll-hint,
    .fab,
    .nav-hamburger,
    .mobile-header,
    .sidebar-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-bg,
    .hero-orb,
    .float-icon {
        display: none;
    }
}