/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        font-size: 15px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 36px;
    }
}

/* ===================================
   Mobile Devices (max-width: 768px)
   =================================== */
@media (max-width: 768px) {

    /* ─── Top Bar ─── */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .top-bar-contact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .top-bar .social-links {
        justify-content: center;
        gap: 10px;
    }

    .top-bar .social-links a {
        width: 30px;
        height: 30px;
    }

    .top-bar .social-links a i {
        font-size: 13px;
    }

    .top-bar > .container > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* ─── Header ─── */
    .nav-container {
        padding: 10px 15px;
    }

    .logo img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    .logo-text span {
        font-size: 10px;
    }

    /* ─── Hamburger Icon ─── */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
        background: var(--white);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    /* ─── Mobile Slide Menu ─── */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-blue);
        padding-top: 75px;
        padding-bottom: 30px;
        transition: left 0.35s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 3px 0 15px rgba(0,0,0,0.4);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }

    /* كل لينك في القائمة */
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        padding: 16px 22px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 16px;
        color: var(--white);
        justify-content: flex-start;
    }

    nav ul li a:hover {
        background: rgba(247,147,30,0.2);
        color: var(--white);
    }

    /* الـ chevron يدور لما الـ dropdown يفتح */
    .dropdown > a .fa-chevron-down {
        margin-left: auto;
        font-size: 11px;
        transition: transform 0.3s ease;
    }

    .dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* ─── Dropdown في الموبايل ─── */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        margin: 0;
        border-radius: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
        display: block;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a {
        color: rgba(255,255,255,0.85);
        padding: 14px 22px 14px 50px;
        font-size: 15px;
        gap: 12px;
    }

    .dropdown-menu li a i {
        color: var(--accent-orange);
        font-size: 16px;
        width: 18px;
        text-align: center;
    }

    .dropdown-menu li a:hover {
        background: rgba(247,147,30,0.25);
        color: var(--white);
    }

    .dropdown-menu li a:hover i {
        color: var(--accent-orange);
    }

    /* ─── Hero ─── */
    .hero {
        min-height: 450px;
        padding: 60px 20px;
    }

    .hero-content h2 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* ─── Sections ─── */
    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* ─── Footer ─── */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* اللوجو في الـ footer في المنتصف */
    .footer-section > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .footer-section > div img {
        margin: 0 auto;
    }

    .footer-section > div > div {
        text-align: center !important;
    }

    /* إيقونات التواصل في الـ footer في المنتصف تحت اللوجو */
    .footer-section .social-links {
        justify-content: center;
        gap: 12px;
        margin-top: 18px;
    }

    .footer-section .social-links a {
        width: 34px;
        height: 34px;
    }

    .footer-section .social-links a i {
        font-size: 15px;
    }

    /* contact info في الـ footer في المنتصف */
    .footer-section p {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .footer-section p i {
        width: 18px;
        text-align: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-section a {
        display: block;
        text-align: center;
    }

    .footer-section h3 {
        margin-bottom: 15px;
    }
}

/* ===================================
   Small Mobile (max-width: 480px)
   =================================== */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .top-bar .social-links a {
        width: 28px;
        height: 28px;
    }

    .top-bar .social-links a i {
        font-size: 12px;
    }

    nav {
        width: 85%;
        max-width: 280px;
    }
}

/* ===================================
   Menu Overlay
   =================================== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}
