/* ===================================
   WG Holdings - Responsive Styles
   =================================== */

/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .hamburger {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-left: 0;
        z-index: 1003;
    }
    
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 16px 20px 24px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 18px 20px;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .mobile-menu-brand {
        min-width: 0;
    }
    
    .menu-site-name {
        display: block;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #777;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70vw;
        margin-top: 12px;
        text-align: center;
    }
    
    .menu-close {
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 26px;
        line-height: 1;
        color: #111;
        display: grid;
        place-items: center;
        border-radius: 10px;
    }
    
    .mobile-nav a:hover {
        color: var(--primary-color);
    }
    
    .nav-separator {
        height: 1px;
        background: #ededed;
        margin: 14px 0;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav li {
        margin: 0;
    }
    
    .mobile-nav a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        font-weight: 500;
        color: #111;
        text-decoration: none;
    }
    
    .nav-group-title {
        display: block;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #777;
        margin-bottom: 12px;
    }
    
    .mobile-nav a:hover {
        color: var(--primary-color);
    }
    
    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 400px;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    /* About Section */
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Buttons */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px;
    }
    
    .section-padding {
        padding: var(--spacing-md) 0;
    }
}

/* High Resolution / Large Screens */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hamburger,
    .hero-cta,
    .cta-section,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize if you want dark mode support
    :root {
        --text-color: #f9fafb;
        --text-light: #d1d5db;
        --bg-color: #111827;
        --bg-light: #1f2937;
        --border-color: #374151;
    }
    
    .site-header {
        background-color: #1f2937;
    }
    
    .feature-card {
        background-color: #1f2937;
    }
    */
}

