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

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

    .hero-highlight {
        font-size: 3.6rem;
    }

    .products-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

    .section-heading {
        font-size: 2rem;
    }
}

/* ===== TABLETS ===== */
@media (max-width: 992px) {
    .hero-line {
        font-size: 2.4rem;
    }

    .hero-highlight {
        font-size: 3rem;
    }

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

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

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

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

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

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

/* ===== MOBILE LANDSCAPE / SMALL TABLETS ===== */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-left {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        padding: 8px 20px;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    /* === Navigation === */
    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 280px;
        height: 100vh;
        text-align: left;
        transition: left 0.4s ease;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 40px;
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
    }

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

    .nav-menu a:hover {
        background: rgba(30, 115, 190, 0.08);
        color: var(--secondary);
    }

    .nav-menu a.active {
        background: rgba(30, 115, 190, 0.1);
        color: var(--secondary);
        font-weight: 600;
    }

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

    /* === Hero Section === */
    .hero {
        min-height: 70vh;
    }

    .hero-line {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-highlight {
        font-size: 2.6rem;
    }

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

    /* === Welcome Section === */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .welcome-content h1::after {
        margin: 16px auto 0;
    }

    .welcome-content h1 {
        font-size: 1.8rem;
    }

    /* === Products Carousel === */
    .products-carousel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card-image {
        height: 200px;
    }

    /* === Software Grid === */
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    /* === Impact Grid === */
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-item.impact-large {
        grid-column: 1;
        grid-row: auto;
        height: 260px;
    }

    .impact-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    /* === Expertise Banner === */
    .expertise-banner {
        background-attachment: scroll;
        padding: 60px 0;
    }

    .expertise-content h2 {
        font-size: 1.8rem;
    }

    .expertise-stats {
        gap: 30px;
    }

    .expertise-stat .stat-number {
        font-size: 2.2rem;
    }

    /* === Gallery === */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 200px;
    }

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

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

    /* === Sections === */
    .section-heading {
        font-size: 1.8rem;
    }

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

    .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,
    .top-products,
    .software-products,
    .welcome-section,
    .why-choose-us,
    .impact-showcase,
    .home-gallery {
        padding: 60px 0;
    }

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

    /* === Team === */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-img {
        aspect-ratio: 4 / 5;
        height: auto;
    }

    /* === Values === */
    .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: 35px;
        text-align: center;
    }

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

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

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

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

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

    .form-container {
        padding: 30px 22px;
    }
}

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

    /* Top Bar */
    .top-bar {
        font-size: 0.8rem;
    }

    .top-bar-label {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

    .hero-line {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

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

    /* Welcome */
    .welcome-content h1 {
        font-size: 1.5rem;
    }

    .welcome-image {
        max-height: 300px;
    }

    /* Section Headings */
    .section-heading {
        font-size: 1.5rem;
    }

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

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

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

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

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

    /* Software Grid */
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .software-item a {
        padding: 20px 14px;
    }

    .software-item img {
        height: 80px;
    }

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

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

    .achievement {
        padding: 28px 14px;
    }

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

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

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

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

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

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

    /* Team */
    .team-img {
        aspect-ratio: 4 / 5;
        height: auto;
    }

    .team-info {
        padding: 20px 16px;
    }

    /* 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,
    .top-products,
    .software-products,
    .welcome-section,
    .why-choose-us,
    .impact-showcase,
    .home-gallery {
        padding: 45px 0;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item {
        height: 180px;
    }

    /* Expertise mobile */
    .expertise-stats {
        flex-direction: column;
        gap: 20px;
    }

    .expertise-content h2 {
        font-size: 1.5rem;
    }

    .expertise-stat .stat-number {
        font-size: 2rem;
    }

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

    /* Mission/Vision */
    .mission, .vision {
        padding: 28px 20px;
    }

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

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

    .footer .container {
        gap: 28px;
    }

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

    /* Hero Stats */
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

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

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

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .logo img {
        height: 42px;
    }

    .hero-line {
        font-size: 1.3rem;
    }

    .hero-highlight {
        font-size: 1.7rem;
    }

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

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