/* ============================================
   Tax Preparation Courses - Responsive Styles
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   LARGE TABLETS & SMALL DESKTOPS (max-width: 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .hero-section {
        min-height: 80vh;
        padding: 6rem 0 4rem;
    }
    
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLETS (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 9rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .section-divider {
        height: 40px;
    }
    
    .empowerment-section,
    .pathway-section,
    .audience-section,
    .compliance-section,
    .tax-calendar-section,
    .methodology-section,
    .trust-section,
    .faq-section,
    .insights-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .timeline-wrapper {
        padding: 0 1rem;
    }
    
    .timeline-item {
        gap: 1.5rem;
    }
    
    .timeline-marker {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 28px;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-section .row {
        flex-direction: column-reverse;
    }
    
    .compliance-image-wrapper {
        margin-bottom: 3rem;
    }
    
    .trust-section .row {
        flex-direction: column;
    }
    
    .trust-visual {
        margin-top: 3rem;
    }
    
    .cta-content {
        padding: 3rem 2rem;
    }
    
    .cta-section .row {
        text-align: center;
    }
    
    .cta-section .col-lg-4 {
        margin-top: 2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   MOBILE LANDSCAPE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 9rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .shape {
        opacity: 0.08;
    }
    
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-3 {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1.05rem;
    }
    
    .empowerment-card,
    .timeline-content,
    .methodology-card {
        padding: 1.75rem;
    }
    
    .empowerment-card .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .audience-visual {
        height: 200px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-month {
        margin-bottom: 1rem;
    }
    
    .methodology-card {
        padding: 2rem;
    }
    
    .card-number {
        font-size: 2.5rem;
        top: 1rem;
        right: 1rem;
    }
    
    .compliance-point,
    .principle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .compliance-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem;
    }
    
    .accordion-button {
        font-size: 1.1rem;
        padding: 1.25rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .insight-image {
        height: 220px;
    }
    
    .insight-content {
        padding: 1.5rem;
    }
    
    .insight-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1.05rem;
    }
    
    .btn-cta-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   MOBILE PORTRAIT (max-width: 575px)
   ============================================ */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 9rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .empowerment-section,
    .pathway-section,
    .audience-section,
    .compliance-section,
    .tax-calendar-section,
    .methodology-section,
    .trust-section,
    .faq-section,
    .insights-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .empowerment-card {
        padding: 1.5rem;
    }
    
    .empowerment-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .empowerment-card h3 {
        font-size: 1.25rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item:not(:last-child)::after {
        display: none;
    }
    
    .timeline-marker {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .audience-card {
        margin-bottom: 1.5rem;
    }
    
    .audience-visual {
        height: 180px;
    }
    
    .audience-content {
        padding: 1.5rem;
    }
    
    .audience-content h3 {
        font-size: 1.3rem;
    }
    
    .compliance-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .compliance-badge {
        position: static;
        margin-top: 1.5rem;
        display: inline-flex;
    }
    
    .month-header {
        padding: 1.25rem;
        font-size: 1.3rem;
    }
    
    .month-content {
        padding: 1.5rem;
    }
    
    .methodology-card {
        padding: 1.75rem;
    }
    
    .methodology-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .methodology-card h3 {
        font-size: 1.25rem;
    }
    
    .trust-visual {
        margin-top: 2rem;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .insight-image {
        height: 200px;
    }
    
    .insight-content {
        padding: 1.25rem;
    }
    
    .insight-content h3 {
        font-size: 1.2rem;
    }
    
    .insight-content p {
        font-size: 0.95rem;
    }
    
    .btn-outline-custom-dark {
        width: 100%;
        text-align: center;
        padding: 0.875rem 2rem;
    }
    
    .cta-content {
        padding: 2rem 1.25rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 1rem;
    }
}

/* ============================================
   VERY SMALL DEVICES (max-width: 374px)
   ============================================ */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-outline-custom-dark,
    .btn-cta-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .empowerment-card,
    .timeline-content,
    .audience-content,
    .methodology-card,
    .insight-content,
    .cta-content {
        padding: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .cookie-banner,
    .hero-shapes,
    .section-divider,
    .cta-section,
    .site-footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .hero-section,
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate__animated {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-secondary: #FFD700;
        --color-gray: #333333;
    }
    
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-cta-primary {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-dark: #0a0a0a;
        --bg-accent: #2d2d2d;
        --color-dark-gray: #e0e0e0;
        --color-gray: #b0b0b0;
        --color-light-gray: #3a3a3a;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--color-dark-gray);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.98);
    }
    
    .hero-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .empowerment-card,
    .audience-card,
    .methodology-card,
    .insight-card,
    .accordion-item {
        background: var(--bg-secondary);
        border-color: var(--color-light-gray);
    }
    
    .timeline-content,
    .calendar-month,
    .calendar-disclaimer {
        background: var(--bg-secondary);
    }
}
