/* ========================================================================== 
   OnTime Systems - media.css
   Mobile-First Responsive Override Layer
   ضع هذا الملف بعد style.css مباشرة داخل index.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   0) Global Responsive Safety Layer
   -------------------------------------------------------------------------- */

:root {
    --mobile-navy: #0F2C4B;
    --mobile-navy-dark: #071b33;
    --mobile-orange: #fd7e14;
    --mobile-soft: #f8fafc;
    --mobile-border: rgba(10, 37, 64, 0.10);
    --mobile-shadow: 0 12px 35px rgba(10, 37, 64, 0.10);
    --mobile-radius: 18px;
    --mobile-transition: 0.28s ease;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
button,
select {
    font-family: inherit;
}

/* مهم للموبايل: يمنع زووم iPhone عند الضغط على inputs */
input,
textarea,
select {
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   1) Large Laptop / Small Desktop
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-inline: 28px;
    }

    .nav-menu ul {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .header-actions .btn-orange {
        padding: 10px 18px;
        font-size: 0.92rem;
    }

    .hero-container,
    .about-container,
    .why-container,
    .contact-wrapper {
        gap: 42px;
    }

    .hero-title,
    .hero-typing-title {
        font-size: clamp(2.55rem, 4vw, 3.2rem);
    }

    .solutions-grid,
    .pos-grid,
    .business-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

/* --------------------------------------------------------------------------
   2) Tablet Landscape / Narrow Desktop
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .header {
        padding: 16px 0;
    }

    .header.scrolled {
        padding: 10px 0;
    }

    .logo a {
        font-size: 1.45rem;
        white-space: nowrap;
    }

    .nav-menu ul {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .header-actions .btn-orange {
        min-height: 42px;
        padding-inline: 14px;
    }

    .hero {
        padding: 155px 0 90px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .dashboard-mockup {
        height: 320px;
    }

    .float-card {
        font-size: 0.82rem;
        padding: 10px 14px;
    }

    #contact .contact-wrapper,
    .contact-wrapper {
        gap: 24px;
    }

    #contact .contact-info,
    #contact form,
    .contact-info,
    .contact-form-box form {
        padding: 32px 26px;
    }
}

/* --------------------------------------------------------------------------
   3) Tablet Portrait - بداية تجربة الموبايل المحسنة
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    html {
        font-size: 15.5px;
    }

    .container {
        padding-inline: 22px;
    }

    .section-padding {
        padding: 74px 0;
    }

    .section-header {
        max-width: 640px;
        margin-bottom: 38px;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.45;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.9;
    }

    .section-tag {
        padding: 8px 18px;
        font-size: 0.88rem;
    }

    .btn,
    .btn-large,
    .btn-contact,
    .contact-submit-btn {
        min-height: 50px;
        border-radius: 14px;
    }

    /* Header */
    .header {
        padding: 12px 0;
        background: rgba(10, 37, 64, 0.82);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .header.scrolled {
        background: rgba(255, 255, 255, 0.96);
    }

    .header-container {
        min-height: 52px;
    }

    .logo {
        order: 3;
    }

    .logo a {
        font-size: 1.42rem;
        line-height: 1;
    }

    .header-actions {
        order: 1;
        gap: 10px;
    }

    .header-actions .btn-orange {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        font-size: 1.28rem;
        transition: var(--mobile-transition);
    }

    .header.scrolled .mobile-toggle {
        background: rgba(15, 44, 75, 0.08);
        color: var(--mobile-navy);
    }

    .mobile-toggle:active {
        transform: scale(0.96);
    }

    .nav-menu {
        position: fixed;
        inset: 76px 0 auto auto;
        width: 100%;
        height: calc(100dvh - 76px);
        min-height: calc(100vh - 76px);
        overflow-y: auto;
        padding: 24px 22px 34px;
        background:
            linear-gradient(180deg, rgba(10, 37, 64, 0.98), rgba(7, 27, 51, 0.98));
        transform: translateX(105%);
        transition: transform 0.32s ease;
        z-index: 999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .nav-menu.active {
        right: 0;
        transform: translateX(0);
    }

    .nav-menu ul {
        width: min(420px, 100%);
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 8px;
        text-align: right;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-link,
    .header.scrolled .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 0 18px;
        color: #ffffff !important;
        font-size: 1.08rem;
        font-weight: 800;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link:hover,
    .nav-link.active,
    .header.scrolled .nav-link:hover,
    .header.scrolled .nav-link.active {
        color: #ffffff !important;
        background: rgba(253, 126, 20, 0.18);
        border-color: rgba(253, 126, 20, 0.35);
    }

    .nav-link::after {
        right: 18px;
        left: 18px;
        bottom: 8px;
        height: 3px;
        background: var(--orange);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 36px);
    }

    /* Hero */
    .hero {
        padding: 118px 0 70px;
        min-height: auto;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 44px;
    }

    .hero-content {
        max-width: 760px;
        margin-inline: auto;
    }

    .glass-badge {
        margin-inline: auto;
        justify-content: center;
        max-width: 100%;
    }

    .hero-title,
    .hero-typing-title {
        max-width: 760px;
        margin-inline: auto;
        font-size: clamp(2.1rem, 6.5vw, 3rem);
        line-height: 1.35;
    }

    .hero-typing-title {
        height: 4.1em;
        min-height: 4.1em;
        max-height: 4.1em;
    }

    .hero-subtitle {
        max-width: 680px;
        margin-inline: auto;
        margin-bottom: 28px;
        font-size: 1.05rem;
        line-height: 2;
    }

    .hero-buttons {
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-visual {
        width: min(620px, 100%);
        margin-inline: auto;
    }

    .dashboard-mockup {
        height: 285px;
        transform: none;
    }

    .dashboard-mockup:hover {
        transform: none;
    }

    .floating-shape {
        filter: blur(44px);
        opacity: 0.75;
    }

    .shape-1 {
        width: 240px;
        height: 240px;
        top: -30px;
        right: 0;
    }

    .shape-2 {
        width: 190px;
        height: 190px;
        bottom: -30px;
        left: 0;
    }

    .float-card {
        font-size: 0.78rem;
        padding: 9px 12px;
        border-radius: 12px;
    }

    .fc-1 { right: 4px; top: 8%; }
    .fc-2 { right: 8px; bottom: 18%; }
    .fc-3 { left: 4px; top: 8%; }
    .fc-4 { left: 50%; bottom: -18px; transform: translateX(-50%); }

    /* About */
    #about,
    .about {
        padding: 74px 0;
    }

    #about .about-container,
    .about-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    #about .about-text,
    .about-text {
        max-width: 720px;
        margin-inline: auto;
    }

    #about .section-tag,
    .about .section-tag {
        margin-inline: auto;
    }

    #about .about-text h2,
    .about-text h2 {
        font-size: clamp(1.8rem, 5.4vw, 2.35rem);
    }

    #about .about-text h2::after {
        margin-inline: auto;
    }

    #about .about-desc,
    .about-desc {
        font-size: 1rem;
        line-height: 2;
    }

    #about .trust-line,
    .trust-line {
        text-align: right;
        justify-content: flex-start;
    }

    #about .about-stats,
    .about-stats {
        width: 100%;
        max-width: 680px;
        margin-inline: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* Dynamic grids */
    .solutions-grid,
    .pos-grid,
    .business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #solutions .solution-card,
    #pos-devices .pos-card,
    .biz-card,
    .solution-card,
    .pos-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .card-icon-wrap,
    #solutions .solution-card .card-icon-wrap,
    #pos-devices .pos-card .card-icon-wrap {
        width: 58px;
        height: 58px;
        font-size: 1.55rem;
        border-radius: 16px;
    }

    .solution-card h3,
    .pos-card h3,
    .biz-card h3 {
        font-size: 1.14rem;
        line-height: 1.5;
    }

    .solution-card p,
    .pos-card p,
    .biz-card p {
        font-size: 0.94rem;
        line-height: 1.85;
    }

    /* POS */
    #pos-devices {
        padding: 76px 0;
    }

    #pos-devices .section-tag.tag-light {
        font-size: 1rem;
        padding: 10px 24px;
        margin-bottom: 24px;
    }

    #pos-devices .text-center.mt-5 {
        margin-top: 2rem;
    }

    /* Business filters */
    .filter-controls {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 14px;
        margin: -4px -2px 30px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .filter-controls::-webkit-scrollbar {
        height: 0;
    }

    .filter-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 9px 18px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    /* Why */
    .why-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .why-content h2 {
        font-size: clamp(1.8rem, 5.4vw, 2.35rem);
        margin-bottom: 22px;
    }

    .check-list {
        max-width: 720px;
        margin-inline: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        text-align: right;
    }

    .check-list li {
        background: #ffffff;
        border: 1px solid rgba(10, 37, 64, 0.08);
        border-radius: 16px;
        padding: 13px 14px;
        font-size: 0.95rem;
        line-height: 1.75;
        box-shadow: 0 8px 22px rgba(10, 37, 64, 0.055);
    }

    .glass-feature-card {
        width: min(420px, 100%);
        padding: 34px 24px;
    }

    .icon-huge {
        font-size: 3.8rem;
    }

    /* Process */


    /* Mobile Logo Polish */
@media (max-width: 992px) {
    .logo .brand-logo {
        gap: 9px;
        padding: 6px 10px;
        border-radius: 16px;
    }

    .brand-logo-img {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 13px;
        padding: 5px;
    }

    .brand-logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo-text {
        display: none;
    }

    .logo .brand-logo {
        padding: 6px;
        border-radius: 15px;
    }

    .brand-logo-img {
        width: 43px;
        height: 43px;
        min-width: 43px;
    }
}
    .timeline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
        max-width: 720px;
        margin-inline: auto;
    }

    .timeline::before {
        display: none;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
        text-align: right;
        padding: 16px;
        background: #ffffff;
        border: 1px solid rgba(253, 126, 20, 0.18);
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(10, 37, 64, 0.06);
    }

    .step-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        margin: 0;
        font-size: 1.15rem;
        border-width: 2px;
    }

    .timeline-step h4 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Branches */
    #branches .branches-grid,
    .branches-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        gap: 18px;
    }

    #branches .branch-card,
    .branch-card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    #branches .branch-contact a,
    .branch-contact a {
        min-height: 48px;
        font-size: 1rem;
    }

    /* Contact */
    #contact,
    .contact {
        padding: 74px 0;
        margin-top: 0;
    }

    #contact .contact-wrapper,
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
        border-radius: 24px;
    }

    #contact .contact-info,
    .contact-info {
        padding: 30px 24px;
        border-radius: 20px;
    }

    #contact .contact-info h2,
    .contact-info h2 {
        font-size: clamp(1.8rem, 5.4vw, 2.3rem);
    }

    #contact .contact-info > p,
    .contact-info p {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.95;
    }

    #contact .contact-details,
    .contact-details {
        gap: 12px;
        margin-bottom: 14px;
    }

    #contact .contact-detail-card,
    .contact-detail-card {
        align-items: flex-start;
        padding: 14px;
        border-radius: 16px;
    }

    #contact .contact-number,
    .contact-number {
        font-size: 1.12rem;
        line-height: 1.7;
        white-space: normal;
        word-break: keep-all;
    }

    #contact .contact-features,
    .contact-features {
        height: auto;
        margin-top: 12px;
        padding: 14px;
        gap: 9px;
    }

    #contact .contact-action-btns,
    .contact-action-btns {
        gap: 10px;
    }

    #contact form,
    .contact-form-box form {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .form-title h3 {
        font-size: 1.45rem;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group input,
    .form-group textarea {
        min-height: 52px;
        border-radius: 14px;
    }

    .form-group textarea {
        height: 138px;
        max-height: 138px;
    }

    /* Final CTA */
    .final-cta {
        padding: 72px 0;
    }

    .final-cta h2 {
        font-size: clamp(1.8rem, 5.6vw, 2.5rem);
        line-height: 1.5;
    }

    .final-cta p {
        max-width: 720px;
        font-size: 1rem;
        line-height: 1.95;
        margin-bottom: 28px;
    }

    .cta-buttons {
        gap: 12px;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer {
        padding: 64px 0 22px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: right;
    }

    .brand-col {
        grid-column: 1 / -1;
    }

    .footer-logo-line {
        margin-right: 0;
    }
}

/* --------------------------------------------------------------------------
   4) Mobile - الهواتف العادية
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding-inline: 18px;
    }

    .section-padding {
        padding: 62px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .section-header p {
        font-size: 0.96rem;
    }

    .section-tag {
        font-size: 0.84rem;
        padding: 7px 15px;
    }

    .btn,
    .btn-large,
    .btn-contact,
    .contact-submit-btn {
        width: 100%;
        min-height: 52px;
        padding: 13px 18px;
        font-size: 0.98rem;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .header-container {
        min-height: 50px;
    }

    .logo a {
        font-size: 1.24rem;
        letter-spacing: -0.2px;
    }

    .mobile-toggle {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .nav-menu {
        inset: 70px 0 auto auto;
        height: calc(100dvh - 70px);
        min-height: calc(100vh - 70px);
        padding: 18px 18px 30px;
    }

    .nav-menu ul {
        gap: 10px;
    }

    .nav-link,
    .header.scrolled .nav-link {
        min-height: 52px;
        font-size: 1rem;
        border-radius: 15px;
    }

    /* Hero */
    .hero {
        padding: 108px 0 60px;
    }

    .hero-container {
        gap: 34px;
    }

    .glass-badge {
        padding: 8px 13px;
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .hero-title,
    .hero-typing-title {
        font-size: clamp(1.72rem, 8.5vw, 2.28rem);
        line-height: 1.42;
    }

    .hero-typing-title {
        height: 5.65em;
        min-height: 5.65em;
        max-height: 5.65em;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 2;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        max-width: 420px;
        margin-inline: auto;
    }

    .hero-visual {
        width: 100%;
        max-width: 460px;
        padding-top: 4px;
    }

    .dashboard-mockup {
        height: 230px;
        border-radius: 18px;
    }

    .mockup-body {
        gap: 10px;
        padding: 12px;
    }

    .mockup-sidebar {
        width: 46px;
    }

    .mockup-cards {
        height: 48px;
        gap: 10px;
    }

    .mockup-content {
        gap: 10px;
    }

    .float-card {
        display: none;
    }

    .floating-shape {
        opacity: 0.45;
    }

    .shape-1 {
        width: 180px;
        height: 180px;
        top: -10px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    /* About */
    #about,
    .about {
        padding: 64px 0;
    }

    #about::before {
        width: 360px;
        height: 360px;
        opacity: 0.85;
    }

    #about .about-container,
    .about-container {
        gap: 26px;
    }

    #about .about-text h2,
    .about-text h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: 16px;
    }

    #about .about-desc,
    .about-desc {
        font-size: 0.96rem;
        line-height: 2;
        margin-bottom: 20px;
    }

    #about .trust-line,
    .trust-line {
        padding: 17px;
        border-radius: 18px;
        gap: 12px;
    }

    #about .trust-line i,
    .trust-line i {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.35rem;
    }

    #about .trust-line h4,
    .trust-line h4 {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    #about .trust-line p,
    .trust-line p {
        font-size: 0.88rem;
    }

    #about .about-stats,
    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #about .stat-box,
    .stat-box {
        padding: 20px 12px;
        border-radius: 18px;
    }

    #about .stat-box i,
    .stat-box i {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
        font-size: 1.35rem;
    }

    #about .stat-box h3,
    .stat-box h3 {
        font-size: 1.55rem;
    }

    #about .stat-box p,
    .stat-box p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    /* Cards */
    .solutions-grid,
    .pos-grid,
    .business-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #solutions .solution-card,
    #pos-devices .pos-card,
    .solution-card,
    .pos-card,
    .biz-card {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 18px;
    }

    #solutions .solution-card .card-icon-wrap,
    #pos-devices .pos-card .card-icon-wrap,
    .card-icon-wrap {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    #solutions .solution-card h3,
    .solution-card h3,
    .pos-card h3,
    .biz-card h3 {
        font-size: 1.08rem;
        margin-bottom: 10px;
    }

    #solutions .solution-card p,
    .solution-card p,
    .pos-card p,
    .biz-card p {
        font-size: 0.92rem;
        line-height: 1.9;
    }

    .more-link {
        margin-top: 16px;
        min-height: 42px;
        align-items: center;
    }

    #pos-devices {
        padding: 64px 0;
    }

    #pos-devices .section-tag.tag-light {
        font-size: 0.94rem;
        padding: 9px 20px;
        margin-bottom: 18px;
    }

    .filter-controls {
        margin-bottom: 24px;
    }

    .filter-btn {
        min-height: 42px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Why */
    .why-container {
        gap: 24px;
    }

    .why-content h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: 18px;
    }

    .check-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .check-list li {
        padding: 12px 13px;
        font-size: 0.92rem;
    }

    .glass-feature-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .glass-feature-card h3 {
        font-size: 1.18rem;
    }

    .glass-feature-card p {
        font-size: 0.92rem;
        line-height: 1.85;
    }

    .icon-huge {
        font-size: 3.2rem;
    }

    /* Process */
    .timeline {
        gap: 12px;
    }

    .timeline-step {
        padding: 14px;
        border-radius: 16px;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1rem;
    }

    .timeline-step h4 {
        font-size: 0.94rem;
    }

    /* Branches */
    #branches::before {
        width: 340px;
        height: 340px;
    }

    #branches .branch-card,
    .branch-card {
        padding: 26px 18px;
    }

    #branches .branch-icon,
    .branch-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 1.55rem;
    }

    #branches .branch-card h3,
    .branch-card h3 {
        font-size: 1.22rem;
        margin-bottom: 10px;
    }

    #branches .branch-card p,
    .branch-card p {
        font-size: 0.92rem;
        line-height: 1.9;
        margin-bottom: 16px;
    }

    #branches .branch-contact a,
    .branch-contact a {
        min-height: 46px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Contact */
    #contact,
    .contact {
        padding: 64px 0;
    }

    #contact .contact-wrapper,
    .contact-wrapper {
        padding: 14px;
        border-radius: 22px;
    }

    #contact .contact-info,
    .contact-info,
    #contact form,
    .contact-form-box form {
        padding: 24px 18px;
        border-radius: 18px;
    }

    #contact .contact-info h2,
    .contact-info h2 {
        font-size: 1.72rem;
        margin-bottom: 10px;
    }

    #contact .contact-info > p,
    .contact-info p {
        font-size: 0.94rem;
        line-height: 1.9;
        margin-bottom: 18px;
    }

    #contact .contact-icon,
    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 13px;
    }

    #contact .contact-detail-card span,
    .contact-detail-card span {
        font-size: 0.8rem;
    }

    #contact .contact-detail-card a,
    .contact-detail-card a {
        font-size: 0.95rem;
    }

    #contact .contact-number,
    .contact-number {
        font-size: 1rem;
        letter-spacing: 0.2px;
    }

    #contact .contact-features div,
    .contact-features div {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    #contact .contact-action-btns,
    .contact-action-btns {
        flex-direction: column;
    }

    .form-title {
        margin-bottom: 20px;
    }

    .form-title h3 {
        font-size: 1.32rem;
    }

    .form-title p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 13px 14px;
    }

    .contact-submit-btn {
        margin-top: 4px;
    }

    /* Final CTA */
    .final-cta {
        padding: 62px 0;
        border-bottom: 5px solid var(--orange);
    }

    .final-cta::before {
        height: 5px;
    }

    .final-cta::after {
        width: 360px;
        height: 360px;
        opacity: 0.75;
    }

    .final-cta h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: 14px;
    }

    .final-cta p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 430px;
        margin-inline: auto;
    }

    /* Footer */
    .footer {
        padding: 54px 0 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: right;
    }

    .footer-logo {
        font-size: 1.55rem;
    }

    .footer-logo span {
        display: block;
        margin-top: 4px;
        font-size: 1rem;
    }

    .footer-col h3 {
        margin-bottom: 16px;
        font-size: 1.08rem;
    }

    .footer-col h3::after {
        right: 0;
        left: auto;
        transform: none;
    }

    .footer-col ul li {
        margin-bottom: 9px;
    }

    .footer-col ul li a,
    .footer-col p,
    .brand-col p {
        font-size: 0.92rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .newsletter-form {
        min-height: 50px;
    }

    .newsletter-form input {
        font-size: 16px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.82rem;
    }

    /* Floating */
    .floating-whatsapp,
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: max(18px, env(safe-area-inset-bottom));
        font-size: 1.25rem;
    }

    .floating-whatsapp {
        left: 18px;
    }

    .back-to-top {
        right: 18px;
    }

    .toast {
        bottom: 18px;
        width: calc(100% - 28px);
        max-width: 420px;
        padding: 15px 16px;
        border-radius: 16px;
    }
}

/* --------------------------------------------------------------------------
   5) Small Mobile - 430px and below
   -------------------------------------------------------------------------- */

@media (max-width: 430px) {
    .container {
        padding-inline: 15px;
    }

    .section-padding {
        padding: 56px 0;
    }

    .logo a {
        font-size: 1.08rem;
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
    }

    .nav-menu {
        inset: 66px 0 auto auto;
        height: calc(100dvh - 66px);
        min-height: calc(100vh - 66px);
        padding-inline: 15px;
    }

    .nav-link,
    .header.scrolled .nav-link {
        min-height: 50px;
        font-size: 0.96rem;
        padding-inline: 15px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 52px;
    }

    .glass-badge {
        font-size: 0.8rem;
        padding: 7px 11px;
    }

    .hero-title,
    .hero-typing-title {
        font-size: clamp(1.55rem, 8.4vw, 1.95rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .dashboard-mockup {
        height: 205px;
    }

    .mockup-sidebar {
        width: 38px;
    }

    .mockup-cards {
        height: 42px;
    }

    #about .about-stats,
    .about-stats {
        gap: 10px;
    }

    #about .stat-box,
    .stat-box {
        padding: 17px 9px;
    }

    #about .stat-box h3,
    .stat-box h3 {
        font-size: 1.36rem;
    }

    #about .stat-box p,
    .stat-box p {
        font-size: 0.78rem;
    }

    #about .trust-line,
    .trust-line {
        padding: 15px;
    }

    #solutions .solution-card,
    #pos-devices .pos-card,
    .solution-card,
    .pos-card,
    .biz-card,
    .branch-card {
        padding: 22px 17px;
    }

    .filter-btn {
        font-size: 0.86rem;
        padding-inline: 14px;
    }

    .check-list li,
    .timeline-step {
        padding: 12px;
    }

    #contact .contact-wrapper,
    .contact-wrapper {
        padding: 11px;
    }

    #contact .contact-info,
    .contact-info,
    #contact form,
    .contact-form-box form {
        padding: 22px 15px;
    }

    #contact .contact-detail-card,
    .contact-detail-card {
        gap: 11px;
    }

    #contact .contact-icon,
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    #contact .contact-number,
    .contact-number {
        font-size: 0.92rem;
    }

    .form-group textarea {
        height: 128px;
        max-height: 128px;
    }

    .final-cta {
        padding: 56px 0;
    }

    .footer-logo {
        font-size: 1.42rem;
    }
}

/* --------------------------------------------------------------------------
   6) Extra Small Mobile - 360px and below
   -------------------------------------------------------------------------- */

@media (max-width: 360px) {
    .container {
        padding-inline: 12px;
    }

    .logo a {
        font-size: 1rem;
    }

    .hero-title,
    .hero-typing-title {
        font-size: 1.45rem;
    }

    .hero-typing-title {
        height: 6.15em;
        min-height: 6.15em;
        max-height: 6.15em;
    }

    .hero-subtitle,
    .about-desc,
    .section-header p,
    .final-cta p {
        font-size: 0.88rem;
    }

    .dashboard-mockup {
        height: 185px;
    }

    #about .about-stats,
    .about-stats {
        grid-template-columns: 1fr;
    }

    #about .stat-box,
    .stat-box {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon number"
            "icon text";
        align-items: center;
        column-gap: 12px;
        text-align: right;
    }

    #about .stat-box i,
    .stat-box i {
        grid-area: icon;
        margin: 0;
    }

    #about .stat-box h3,
    .stat-box h3 {
        grid-area: number;
        margin: 0;
    }

    #about .stat-box p,
    .stat-box p {
        grid-area: text;
    }

    .btn,
    .btn-large,
    .btn-contact,
    .contact-submit-btn {
        font-size: 0.92rem;
    }

    .contact-features div {
        font-size: 0.84rem;
    }
}

/* --------------------------------------------------------------------------
   7) Very Short Screens / Mobile Landscape
   -------------------------------------------------------------------------- */

@media (max-height: 560px) and (orientation: landscape) {
    .header {
        padding: 7px 0;
    }

    .header-container {
        min-height: 44px;
    }

    .nav-menu {
        inset: 58px 0 auto auto;
        height: calc(100dvh - 58px);
        min-height: calc(100vh - 58px);
        padding: 12px 18px 18px;
    }

    .nav-menu ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: min(680px, 100%);
    }

    .nav-link,
    .header.scrolled .nav-link {
        min-height: 44px;
        font-size: 0.92rem;
    }

    .hero {
        padding: 88px 0 44px;
    }

    .hero-visual {
        display: none;
    }

    .hero-typing-title {
        height: 3em;
        min-height: 3em;
        max-height: 3em;
    }

    .section-padding {
        padding: 48px 0;
    }
}

/* --------------------------------------------------------------------------
   8) Touch Devices: إلغاء الهوفر الثقيل وتحسين السلاسة
   -------------------------------------------------------------------------- */

@media (hover: none) and (pointer: coarse) {
    .solution-card:hover,
    .pos-card:hover,
    .biz-card:hover,
    .branch-card:hover,
    .contact-detail-card:hover,
    .timeline-step:hover,
    .stat-box:hover,
    #solutions .solution-card:hover,
    #pos-devices .pos-card:hover,
    #branches .branch-card:hover,
    #contact .contact-detail-card:hover {
        transform: none !important;
    }

    .dashboard-mockup:hover {
        transform: none !important;
    }

    .btn:hover,
    .btn-contact:hover,
    .contact-submit-btn:hover,
    .floating-whatsapp:hover,
    .back-to-top:hover {
        transform: none !important;
    }

    .pulse-btn {
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   9) Reduced Motion: احترام المستخدمين اللي قافلين الأنيميشن
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   10) Print Safety
   -------------------------------------------------------------------------- */

@media print {
    .header,
    .floating-whatsapp,
    .back-to-top,
    .toast,
    .hero-visual,
    .contact-action-btns,
    .newsletter-form {
        display: none !important;
    }

    body {
        color: #111;
        background: #fff;
    }

    section,
    .footer {
        padding: 24px 0 !important;
        background: #fff !important;
        color: #111 !important;
    }
}


/* ==========================================================================
   Web Development Section Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .web-dev-wrapper {
        gap: 48px;
    }

    .web-browser-card {
        width: min(100%, 480px);
    }

    .web-float-1 {
        right: -8px;
    }

    .web-float-3 {
        left: -8px;
    }
}

@media (max-width: 992px) {
    .web-development {
        padding: 76px 0;
    }

    .web-dev-wrapper {
        grid-template-columns: 1fr;
        gap: 42px;
        text-align: center;
    }

    .web-dev-content {
        max-width: 760px;
        margin-inline: auto;
    }

    .web-dev-desc {
        margin-inline: auto;
        font-size: 1rem;
        line-height: 2;
    }

    .web-dev-features {
        max-width: 720px;
        margin-inline: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: right;
    }

    .web-dev-actions {
        justify-content: center;
    }

    .web-dev-visual {
        width: min(620px, 100%);
        min-height: 390px;
        margin-inline: auto;
    }

    .web-browser-card {
        transform: none;
    }

    .web-browser-card:hover {
        transform: translateY(-4px);
    }

    .web-float-card {
        font-size: 0.86rem;
        padding: 10px 13px;
    }

    .web-float-1 {
        top: 24px;
        right: 8px;
    }

    .web-float-2 {
        right: 12px;
        bottom: 38px;
    }

    .web-float-3 {
        left: 8px;
        bottom: 92px;
    }
}

@media (max-width: 768px) {
    .web-dev-content h2 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .web-dev-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .web-feature-item {
        min-height: 58px;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .web-dev-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: min(420px, 100%);
        margin-inline: auto;
    }

    .web-dev-actions .btn {
        width: 100%;
    }

    .web-dev-visual {
        min-height: 350px;
    }

    .web-browser-body {
        padding: 18px;
    }

    .web-preview-hero {
        grid-template-columns: 1fr 70px;
        min-height: 105px;
        padding: 16px;
    }

    .web-preview-hero i {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 1.55rem;
    }

    .web-preview-grid {
        gap: 10px;
    }

    .web-preview-grid span {
        height: 66px;
        border-radius: 15px;
    }

    .web-float-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .web-development {
        padding: 64px 0;
    }

    .web-dev-wrapper {
        gap: 34px;
    }

    .web-dev-desc {
        font-size: 0.96rem;
    }

    .web-feature-item {
        align-items: flex-start;
        line-height: 1.7;
    }

    .web-feature-item i {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
    }

    .web-dev-visual {
        min-height: auto;
    }

    .web-browser-card {
        min-height: 310px;
        border-radius: 20px;
    }

    .web-browser-top {
        height: 42px;
    }

    .web-preview-hero {
        grid-template-columns: 1fr;
    }

    .web-preview-hero i {
        display: none;
    }

    .web-preview-grid {
        grid-template-columns: 1fr;
    }

    .web-preview-grid span {
        height: 48px;
    }
}


/* ==========================================================================
   Web Service Band Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .web-service-band {
        padding: 0 0 74px;
    }

    .web-service-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 26px;
        border-radius: 24px;
        text-align: center;
    }

    .web-service-content {
        margin-inline: auto;
    }

    .web-service-badge {
        margin-inline: auto;
    }

    .web-service-content p {
        margin-inline: auto;
        font-size: 1rem;
        line-height: 2;
    }

    .web-service-points {
        justify-content: center;
    }

    .web-service-side {
        width: min(520px, 100%);
        margin-inline: auto;
    }

    .web-mini-card {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .web-service-card {
        padding: 28px 20px;
    }

    .web-service-content h2 {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
    }

    .web-service-points {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .web-service-points span {
        justify-content: center;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 0.86rem;
    }

    .web-service-btn {
        min-height: 52px;
    }
}

@media (max-width: 480px) {
    .web-service-band {
        padding: 0 0 64px;
    }

    .web-service-card {
        padding: 24px 16px;
        border-radius: 22px;
    }

    .web-service-badge {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .web-service-content p {
        font-size: 0.93rem;
    }

    .web-service-points {
        grid-template-columns: 1fr;
    }

    .web-mini-card {
        grid-template-columns: 44px 1fr;
        column-gap: 12px;
        padding: 15px;
        border-radius: 18px;
    }

    .web-mini-card i {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 1.1rem;
    }

    .web-mini-card strong {
        font-size: 0.98rem;
    }

    .web-mini-card small {
        font-size: 0.8rem;
    }
}