/* ==========================================================================
   H.H.S Trade International LLC - Responsive Stylesheet
   ========================================================================== */

/* Large Devices (Laptops/Desktops) - 1200px and down */
@media (max-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 3.2rem; }
    
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .nav-menu > li > a {
        padding: 10px 10px;
        font-size: 0.88rem;
    }
}

/* Medium Devices (Tablets) - 992px and down */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .hero-typing { font-size: 1.2rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .services-section,
    .about-preview,
    .why-choose,
    .testimonials-section,
    .blog-preview,
    .cta-section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        height: 400px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-choose-image img {
        height: 400px;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .trust-badges-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-badge:nth-child(2n) {
        border-right: none;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    /* Prevent any horizontal overflow on tablet/mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Mobile Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        align-items: stretch;
        z-index: 1000;
        gap: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .nav-menu > li > a {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        border: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .top-bar-info {
        gap: 15px;
    }
    
    .top-bar-info .separator {
        display: none;
    }
    
    .page-banner {
        padding: 90px 0 60px;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
}

/* Small Devices (Mobile Landscape) - 768px and down */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges-inner {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .trust-badge {
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        padding-bottom: 20px;
    }
    
    .trust-badge:last-child {
        border-bottom: none;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        display: none;
    }
    
    .about-experience-badge {
        top: 20px;
        right: 20px;
        padding: 15px 20px;
    }
    
    .about-experience-badge .years {
        font-size: 1.8rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .newsletter-popup form {
        flex-direction: column;
    }
    
    .live-chat {
        bottom: 90px;
        left: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-newsletter {
        flex-direction: column;
    }
}

/* Extra Small Devices (Mobile Portrait) - 480px and down */
@media (max-width: 480px) {
    html { font-size: 15px; }
    
    .container {
        padding: 0 20px;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-typing {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-text .company {
        font-size: 1.1rem;
    }
    
    .logo-text .tagline {
        display: none;
    }
    
    .stat-item .counter {
        font-size: 2.5rem;
    }
    
    .live-chat-window {
        width: calc(100vw - 40px);
        left: 0;
    }
    
    .service-card-content,
    .blog-card-content {
        padding: 25px 20px;
    }
    
    .about-image-secondary,
    .about-image-main {
        width: 100%;
        position: relative;
        height: 250px;
    }
    
    .about-images {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .about-image-main,
    .about-image-secondary {
        position: relative;
    }
    
    .about-experience-badge {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .top-bar,
    .back-to-top,
    .live-chat,
    .cookie-consent,
    .newsletter-popup,
    .hero-buttons,
    .cta-section {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
