/* ===============================================
   MOBILE RESPONSIVE STYLES FOR INDEX2.HTML
   =============================================== */

/* ===== BASE MOBILE STYLES ===== */
@media (max-width: 768px) {

  /* ===== CONTAINER ===== */
  .container,
  .grid-container {
    padding: 0 20px;
  }

  /* ===== SOCIAL FIXED BAR ===== */
  .social-fixed {
    display: none; /* Hide on mobile to avoid clutter */
  }

  /* ===== HEADER & TOPBAR ===== */
  .site-header {
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

  .topbar {
    padding: 15px 0;
  }

  .topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand img {
    width: 100px !important;
    height: auto;
  }

  /* Hide desktop navigation */
  .nav {
    display: none;
  }

  /* Mobile actions */
  .actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .lang {
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Mobile menu button */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
  }

  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
  }

  /* Hide mega menu on mobile */
  .mega {
    display: none;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    height: 60vh;
    min-height: 500px;
  }

  .hero__content {
    padding: 0 20px;
    text-align: center;
  }

  .hero__badge {
    font-size: 12px;
    padding: 8px 16px;
    margin-bottom: 20px;
  }

  .hero__badge i {
    font-size: 14px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero__text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Hero arrows - smaller on mobile */
  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero__arrow--left {
    left: 10px;
  }

  .hero__arrow--right {
    right: 10px;
  }

  /* Hero dots */
  .hero__dots {
    bottom: 20px;
  }

  .hero__dot {
    width: 8px;
    height: 8px;
  }

  /* ===== SECTION HEADERS ===== */
  .section {
    padding: 60px 0;
  }

  .section__header {
    margin-bottom: 40px;
    text-align: center;
  }

  .section__badge {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 16px;
  }

  .section__title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .section__subtitle {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* ===== SERVICES SECTION ===== */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card__icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  .service-card__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .service-card__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .service-card__link {
    font-size: 14px;
  }

  /* ===== QUICK ACTIONS SECTION ===== */
  .actions__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .action-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px;
  }

  .action-card__icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 16px;
    justify-content: center;
  }

  .action-card__content {
    padding: 0;
  }

  .action-card__title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .action-card__text {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .action-card__link {
    font-size: 14px;
  }

  /* ===== NEWS SECTION ===== */
  .news__tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }

  .news__tab {
    font-size: 13px;
    padding: 8px 16px;
    flex: 1 1 auto;
    min-width: fit-content;
  }

  .news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    display: flex;
    flex-direction: column;
  }

  .news-card__image {
    height: 200px;
  }

  .news-card__badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .news-card__content {
    padding: 20px;
  }

  .news-card__date {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .news-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .news-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .news-card__link {
    font-size: 14px;
  }

  /* ===== STATS SECTION ===== */
  .stats {
    padding: 60px 0;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .stat-card__icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  .stat-card__value {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .stat-card__label {
    font-size: 14px;
  }

  /* ===== PARTNERS SECTION ===== */
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partner-card {
    padding: 24px 16px;
  }

  .partner-card__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .partner-card__name {
    font-size: 14px;
  }

  /* ===== FOOTER ===== */
  .footer {
    padding: 40px 0 20px;
  }

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

  .footer__column {
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
    margin-bottom: 16px;
  }

  .footer__logo img {
    width: 80px;
  }

  .footer__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .footer__social {
    justify-content: center;
    gap: 12px;
  }

  .footer__social-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer__title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .footer__links {
    gap: 10px;
  }

  .footer__links a {
    font-size: 14px;
  }

  .footer__contact {
    gap: 12px;
  }

  .footer__contact li {
    font-size: 14px;
    justify-content: center;
  }

  .footer__contact i {
    font-size: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    padding-top: 30px;
    text-align: center;
  }

  .footer__copyright {
    font-size: 13px;
  }

  .footer__legal {
    gap: 16px;
  }

  .footer__legal a {
    font-size: 13px;
  }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {

  .hero__title {
    font-size: 28px;
  }

  .hero__text {
    font-size: 14px;
  }

  .section__title {
    font-size: 24px;
  }

  .section__subtitle {
    font-size: 14px;
  }

  .service-card__title,
  .action-card__title,
  .news-card__title {
    font-size: 16px;
  }

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

  .stat-card__value {
    font-size: 32px;
  }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu__header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


mobile-menu__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

.mobile-menu__nav {
    padding: 20px 0;
}

.mobile-menu__item {
    border-bottom: 1px solid var(--line);
}

.mobile-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}

.mobile-menu__link:hover {
    background: var(--gray-50);
}

.mobile-menu__link i {
    font-size: 12px;
    color: var(--text-light);
}

.mobile-menu__submenu {
    display: none;
    background: var(--gray-50);
    padding: 8px 0;
}

.mobile-menu__submenu.active {
    display: block;
}

.mobile-menu__sublink {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.mobile-menu__sublink:hover {
    color: var(--accent);
}

.mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid var(--line);
}

.mobile-menu__cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

.mobile-menu__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.mobile-menu__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu__social-link:hover {
    background: var(--accent);
    color: white;
}

/* Mobile menu overlay backdrop */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== TABLET STYLES (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .actions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .hero__title {
        font-size: 40px;
    }

    .section__title {
        font-size: 32px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        height: 100vh;
        min-height: auto;
    }

    .hero__content {
        padding-top: 80px;
    }

    .hero__title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero__text {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero__buttons {
        flex-direction: row;
        gap: 12px;
    }

    .hero__buttons .btn {
        width: auto;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== UTILITY CLASSES FOR MOBILE ===== */
@media (max-width: 768px) {

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .full-width-mobile {
        width: 100% !important;
    }

    .no-padding-mobile {
        padding: 0 !important;
    }

    .no-margin-mobile {
        margin: 0 !important;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .btn,
    .action-card,
    .service-card,
    .news-card {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .service-card:hover,
    .action-card:hover,
    .news-card:hover {
        transform: none;
    }

    /* Improve tap feedback */
    .btn:active,
    .action-card:active,
    .service-card:active {
        opacity: 0.8;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__slide {
        transition: none !important;
    }

    .mobile-menu {
        transition: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {

    .btn {
        border: 2px solid currentColor;
    }

    .service-card,
    .action-card,
    .news-card {
        border: 2px solid var(--line);
    }

    .hero__gradient {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .site-header,
    .hero__arrows,
    .hero__dots,
    .mobile-menu,
    .social-fixed,
    .footer__social {
        display: none !important;
    }

    .hero {
        height: auto;
        page-break-after: always;
    }

    .section {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

