/* ========================================
   Beijing Hailong Tengda Labor Service Co., Ltd.
   Responsive Stylesheet
   ======================================== */

/* ========================================
   LARGE DESKTOP (1400px and above)
   ======================================== */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ========================================
   DESKTOP (1200px - 1399px)
   ======================================== */

@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .features-container {
        gap: 60px;
    }
    
    .app-container {
        gap: 60px;
    }
    
    .footer-grid {
        gap: 40px;
    }
}

/* ========================================
   LAPTOP (992px - 1199px)
   ======================================== */

@media (max-width: 1199px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        max-width: 960px;
    }
    
    .header-container {
        padding: 15px 30px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-image {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .app-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .app-preview {
        order: -1;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legal-content {
        padding: 40px;
    }
}

/* ========================================
   TABLET (768px - 991px)
   ======================================== */

@media (max-width: 991px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        max-width: 720px;
    }
    
    .header-container {
        padding: 12px 20px;
    }
    
    .logo svg {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 42, 74, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .value-card {
        padding: 30px;
    }
    
    .value-icon {
        width: 80px;
        height: 80px;
    }
    
    .value-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        padding: 40px;
    }
    
    .contact-form-wrapper {
        padding: 40px;
    }
    
    .legal-content {
        padding: 30px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   MOBILE LANDSCAPE (576px - 767px)
   ======================================== */

@media (max-width: 767px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .logo svg {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 8px 20px;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
    
    .section-badge {
        font-size: 0.65rem;
        padding: 6px 15px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .feature-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .app-features {
        margin-bottom: 30px;
    }
    
    .app-feature {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .app-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .store-button {
        padding: 12px 20px;
    }
    
    .store-button svg {
        width: 35px;
        height: 35px;
    }
    
    .store-button-label {
        font-size: 0.6rem;
    }
    
    .store-button-title {
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        border-width: 6px;
        border-radius: 30px;
    }
    
    .phone-screen {
        border-radius: 24px;
    }
    
    .phone-screen svg {
        width: 60px;
        height: 60px;
    }
    
    .news-card {
        border-radius: 10px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 130px 0 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 25px 20px;
    }
    
    .mission-card,
    .vision-card {
        padding: 30px;
    }
    
    .mission-card h3 svg,
    .vision-card h3 svg {
        width: 30px;
        height: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-image {
        height: 250px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .contact-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-content {
        padding: 25px 20px;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
        margin-top: 30px;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .legal-content p {
        font-size: 0.95rem;
    }
    
    .cookie-banner {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   MOBILE PORTRAIT (up to 575px)
   ======================================== */

@media (max-width: 575px) {
    :root {
        --section-padding: 40px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-text span {
        font-size: 0.6rem;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 2px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 6px 15px;
        letter-spacing: 2px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
    
    .section-badge {
        font-size: 0.6rem;
        padding: 5px 12px;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .app-features {
        margin-bottom: 25px;
    }
    
    .app-feature {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .app-feature svg {
        width: 20px;
        height: 20px;
    }
    
    .app-feature span {
        font-size: 0.9rem;
    }
    
    .store-button {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .store-button svg {
        width: 30px;
        height: 30px;
    }
    
    .store-button-label {
        font-size: 0.55rem;
    }
    
    .store-button-title {
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        border-width: 5px;
        border-radius: 25px;
        padding: 15px;
    }
    
    .phone-screen {
        border-radius: 18px;
    }
    
    .phone-screen svg {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .phone-screen p {
        font-size: 0.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card {
        border-radius: 8px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-date {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-category {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .news-content p {
        font-size: 0.85rem;
    }
    
    .news-link {
        font-size: 0.75rem;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-logo svg {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact-item p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-legal {
        gap: 20px;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        gap: 8px;
    }
    
    .values-grid {
        gap: 15px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .value-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .mission-card,
    .vision-card {
        padding: 25px;
    }
    
    .mission-card h3,
    .vision-card h3 {
        font-size: 1.3rem;
    }
    
    .mission-card h3 svg,
    .vision-card h3 svg {
        width: 25px;
        height: 25px;
    }
    
    .team-image {
        height: 220px;
    }
    
    .team-image svg {
        width: 80px;
        height: 80px;
    }
    
    .team-info h4 {
        font-size: 1.1rem;
    }
    
    .team-info p {
        font-size: 0.85rem;
    }
    
    .contact-info {
        padding: 25px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .legal-content h3 {
        font-size: 1rem;
        margin-top: 18px;
    }
    
    .legal-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .legal-content ul {
        padding-left: 20px;
    }
    
    .legal-content ul li {
        font-size: 0.9rem;
    }
    
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (up to 375px)
   ======================================== */

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
        border-radius: 22px;
    }
    
    .phone-screen svg {
        width: 40px;
        height: 40px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .cookie-content {
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .footer,
    .cookie-banner,
    .scroll-top,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    .section {
        padding: 20pt 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 20px;
    z-index: 99999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-dark: #000000;
        --accent-gold: #ffa500;
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .service-card,
    .news-card,
    .team-member,
    .value-card {
        border: 2px solid var(--primary-dark);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .news-card:hover,
    .team-member:hover,
    .value-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        color: var(--white);
    }
    
    .nav-link:hover::after {
        width: 0;
    }
}
