/* Responsive Styles */

/* Mobile Styles (< 600px) */
@media (max-width: 599px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Top Bar - MUST BE VISIBLE */
    .top-bar {
        display: block !important;
        width: 100% !important;
        height: 26px !important;
        background-color: #F8FAFB !important;
    }
    
    .top-bar-wrapper {
        display: block !important;
        height: 25px !important;
        border-bottom: 1px solid #E5E7EB !important;
    }
    
    .top-bar-content {
        display: flex !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .top-bar-items {
        gap: 12px !important;
        display: flex !important;
    }
    
    .top-bar-item {
        display: flex !important;
        font-size: 11px !important;
    }
    
    .top-bar-item span {
        display: none !important;
    }
    
    .top-bar-item svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Navigation */
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .nav-logo {
        height: 28px !important;
    }
    
    /* Sections */
    .section {
        padding: 32px 16px !important;
        max-width: 100vw !important;
    }
    
    .section-padding {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .section__title {
        font-size: 22px !important;
        margin-bottom: 16px !important;
    }
    
    .section__text {
        font-size: 13px !important;
        line-height: 1.6 !important;
        text-align: justify !important;
    }
    
    /* Hero Sections */
    .hero-section,
    .strategy-hero,
    .about-hero,
    .ig-hero,
    .nc-hero {
        min-height: 200px !important;
        height: auto !important;
        padding: 32px 16px !important;
        max-width: 100vw !important;
    }
    
    .hero-content,
    .strategy-hero__content,
    .about-hero__content {
        padding: 20px 16px !important;
        max-width: 100% !important;
    }
    
    .hero-title,
    .strategy-hero h1,
    .about-hero h1,
    .ig-hero h1,
    .nc-hero h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle,
    .strategy-hero p,
    .about-hero p,
    .ig-hero p,
    .nc-hero p {
        font-size: 11px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .hero-btn {
        flex: 1 !important;
        height: 40px !important;
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
    
    /* Cards & Grids */
    .stats-grid,
    .pillar-cards,
    .service-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .pillar-card {
        flex-direction: column !important;
        padding: 20px 16px !important;
        gap: 16px !important;
    }
    
    .pillar-card__icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .pillar-card__title {
        font-size: 15px !important;
    }
    
    .pillar-card__text {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    /* Dividers */
    .divider {
        margin: 0 16px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 24px 16px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .footer-links {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* Text wrapping */
    h1, h2, h3, h4, h5, h6, p, span, a, button {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Mobile Styles (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px) {
    .section-padding {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .top-bar-items {
        gap: 16px;
    }
    
    .top-bar-item span {
        display: none;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-content {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .section {
        padding: 40px 24px !important;
    }
    
    .hero-section {
        min-height: 280px;
        height: auto;
    }
    
    .hero-content {
        padding: 40px 24px 32px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 12px;
        width: 100%;
    }
    
    .hero-btn {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .brands-title {
        font-size: 24px;
    }
    
    .brands-description {
        font-size: 14px;
        text-align: left !important;
    }
    
    body.ar .brands-description {
        text-align: right !important;
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Desktop Styles (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
    .section-padding {
        padding-left: calc(10% - 8px);
        padding-right: calc(10% - 8px);
    }
    
    .hero-section {
        height: calc(100vw / (1920 / 800));
    }
    
    .hero-content {
        padding: 0 calc(10% - 8px);
        height: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .service-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Large Desktop Styles (≥ 1200px) */
@media (min-width: 1200px) {
    .section-padding {
        padding-left: calc(10% - 8px);
        padding-right: calc(10% - 8px);
    }
    
    .hero-section {
        height: calc(100vw / (1920 / 800));
    }
    
    .hero-content {
        padding: 0 calc(10% - 8px);
        height: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .service-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Extra Large Desktop Styles (≥ 1920px) */
@media (min-width: 1920px) {
    .section-padding {
        padding-left: var(--padding-large);
        padding-right: var(--padding-large);
    }
    
    .hero-content {
        padding: 0 var(--padding-large);
    }
    
    .brands-description {
        max-width: 1000px;
    }
}

/* Responsive Typography */
@media (max-width: 599px) {
    .hero-title { font-size: 20px !important; }
    .hero-subtitle { font-size: 11px !important; }
    .brands-title { font-size: 22px !important; }
    .brands-description { font-size: 12px !important; }
    .section__title { font-size: 22px !important; }
    .section__text { font-size: 13px !important; }
}

@media (min-width: 600px) and (max-width: 899px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .brands-title { font-size: 26px; }
    .section__title { font-size: 26px; }
}

@media (min-width: 900px) {
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 16px; }
    .brands-title { font-size: 32px; }
}

/* Responsive Navigation - Handled in shared-layout.css */

/* Print Styles */
@media print {
    .top-bar,
    .navigation-bar,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: 200px;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}