/* ===== RESPONSIVE DESIGN - FRANCMATIC TECHNOLOGIES ===== */

/* ===== LARGE TABLETS / SMALL DESKTOPS ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .container {
        gap: 40px;
    }

    .footer .container {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 35px;
    }

    .product-grid {
        gap: 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ===== TABLETS ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
        max-width: 500px;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cta-section h2,
    .partnership-section h2 {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2.6rem;
    }
}

/* ===== MOBILE LANDSCAPE / SMALL TABLETS ===== */
@media (max-width: 768px) {
    /* === Navigation === */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .nav-toggle:hover {
        background: rgba(67, 97, 238, 0.1);
    }

    .nav-toggle span {
        width: 24px;
        height: 2.5px;
        background: var(--primary);
        margin: 3px 0;
        display: block;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 3px;
        transform-origin: center;
    }

    .nav-toggle:hover span {
        background: var(--secondary);
    }

    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 72px);
        text-align: center;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 8px 0;
        width: 100%;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--dark);
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .nav-menu a:hover {
        background: rgba(67, 97, 238, 0.08);
        color: var(--secondary);
        transform: translateX(5px);
    }

    .nav-menu a.active {
        background: rgba(67, 97, 238, 0.1);
        color: var(--secondary);
        font-weight: 600;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Contact Button in Mobile */
    .contact-btn {
        margin-top: 16px !important;
        display: inline-block !important;
        width: auto !important;
    }

    /* === Hero Section === */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat .stat-number {
        font-size: 1.6rem;
    }

    /* === Page Header === */
    .page-header {
        padding: 130px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* === Sections === */
    .section-title {
        font-size: 2rem;
    }

    .services-preview,
    .team-section,
    .about-content,
    .all-services,
    .products-section,
    .upcoming-products,
    .contact-info-section,
    .faq-section,
    .process-section,
    .cta-section,
    .partnership-section,
    .mission-vision {
        padding: 70px 0;
    }

    /* === Services Grid === */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid.detailed {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 35px 25px;
    }

    .service-card.detailed {
        padding: 30px 24px;
    }

    /* === Process Steps === */
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* === Products === */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .sub-products {
        grid-template-columns: 1fr 1fr;
    }

    /* === Team === */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-img {
        height: 280px;
    }

    /* === Values Grid === */
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* === Achievements === */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* === Contact === */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* === FAQ === */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* === Footer === */
    .footer .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* === CTA === */
    .cta-section h2,
    .partnership-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p,
    .partnership-section p {
        font-size: 1rem;
    }

    /* === Forms === */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 35px 25px;
    }
}

/* ===== MOBILE PORTRAIT ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Typography */
    .hero h1 {
        font-size: 1.7rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .cta-section h2,
    .partnership-section h2 {
        font-size: 1.5rem;
    }

    .about-intro h2,
    .values-section h2,
    .achievements h2,
    .upcoming-products h2,
    .faq-section h2,
    .products-intro h2,
    .form-container h2 {
        font-size: 1.6rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Hero */
    .hero {
        padding: 110px 0 50px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat .stat-number {
        font-size: 1.4rem;
    }

    .hero-stat .stat-label {
        font-size: 0.75rem;
    }

    /* Page Header */
    .page-header {
        padding: 110px 0 50px;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 30px 20px;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
    }

    .achievement {
        padding: 30px 15px;
    }

    .achievement-number {
        font-size: 2.2rem;
    }

    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-method {
        padding: 30px 20px;
    }

    /* Sub-products */
    .sub-products {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Product Actions */
    .product-item-actions {
        flex-direction: column;
    }

    .product-item-actions .btn {
        width: 100%;
    }

    /* Team */
    .team-img {
        height: 250px;
    }

    .team-info {
        padding: 22px 18px;
    }

    /* Sections Padding */
    .services-preview,
    .team-section,
    .about-content,
    .all-services,
    .products-section,
    .upcoming-products,
    .contact-info-section,
    .faq-section,
    .process-section,
    .cta-section,
    .partnership-section,
    .mission-vision {
        padding: 50px 0;
    }

    /* Scroll Top */
    .scroll-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    /* Mission/Vision */
    .mission, .vision {
        padding: 30px 22px;
    }

    .mission h2, .vision h2 {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer .container {
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .logo span {
        font-size: 1rem;
    }

    .logo img {
        height: 36px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}
