/* ============================================
   Yurakucho CPA Office - Responsive Styles
   ============================================ */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-container {
        gap: var(--spacing-xl);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    /* Header */
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        gap: var(--spacing-sm);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .about-hero {
        grid-template-columns: 1fr;
    }
    
    .about-hero-image {
        order: -1;
    }
    
    /* Services */
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    
    .service-detail-image {
        order: -1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .form-container {
        padding: var(--spacing-xl);
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    /* Contact */
    .contact-info-card {
        padding: var(--spacing-lg);
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sitemap */
    .sitemap-list {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    /* Base */
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .header-container {
        padding: var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.65rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-image img {
        max-height: 220px;
    }
    
    /* Page Header */
    .page-header {
        padding: var(--spacing-xl) 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Content */
    .content-page {
        padding: var(--spacing-xl) 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 35px;
        height: 35px;
    }
    
    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* Form */
    .form-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Cookie Banner */
    .cookie-container {
        padding: var(--spacing-md);
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        max-width: none;
    }
    
    /* Contact Info */
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-icon {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* Map */
    .map-container {
        height: 200px;
    }
    
    /* Service Detail */
    .service-detail {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    /* Value Cards */
    .value-card {
        padding: var(--spacing-lg);
    }
    
    .value-card .value-icon {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .lead-form-section,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #1a1a1a;
        --accent-color: #0000ff;
        --text-color: #000;
        --text-muted: #333;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 3px;
    }
}

/* 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 to enable dark mode support
    :root {
        --white: #1a202c;
        --light-gray: #2d3748;
        --medium-gray: #4a5568;
        --dark-gray: #e2e8f0;
        --text-color: #f7fafc;
        --text-muted: #a0aec0;
    }
    
    .header {
        background-color: var(--white);
    }
    
    .service-card,
    .feature-item,
    .form-container,
    .contact-info-card,
    .value-card,
    .sitemap-section {
        background-color: var(--light-gray);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        background-color: var(--medium-gray);
        color: var(--text-color);
    }
    */
}
