/* ========================================
   Mont Royale Advisory - Responsive Styles
   Mobile-first responsive design
   ======================================== */

/* ========================================
   Tablet Styles (768px and below)
   ======================================== */

@media (max-width: 768px) {

    /* Typography adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Spacing adjustments */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Consultants Grid */
    .consultants-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Mobile Styles (480px and below)
   ======================================== */

@media (max-width: 480px) {

    /* Typography */
    html {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Spacing */
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    /* Navigation */
    .navbar {
        height: 90px;
    }

    .navbar .logo img {
        height: 60px;
    }

    .nav-links {
        top: 90px;
    }

    /* Hero */
    .hero-subtitle {
        font-size: 1.125rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Service Cards */
    .service-card {
        padding: var(--spacing-sm);
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Consultant Cards */
    .consultant-info {
        padding: var(--spacing-sm);
    }

    .consultant-placeholder {
        font-size: 3rem;
    }

    /* Contact Form */
    .contact-form {
        padding: var(--spacing-sm);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-sm) 0;
    }

    .footer-logo img {
        height: 80px;
    }
}

/* ========================================
   Large Desktop (1400px and above)
   ======================================== */

@media (min-width: 1400px) {

    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .services-grid {
        gap: var(--spacing-lg);
    }

    .consultants-grid {
        gap: var(--spacing-xl);
    }
}

/* ========================================
   Landscape Orientation (Mobile/Tablet)
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {

    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {

    /* Hide navigation and interactive elements */
    .navbar,
    .mobile-menu-toggle,
    .scroll-indicator,
    .btn,
    .contact-form {
        display: none;
    }

    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    }

    .hero-section,
    .about-section,
    .consultants-section,
    .contact-section,
    .footer {
        background: #fff;
        color: #000;
    }

    /* Remove shadows */
    .service-card,
    .consultant-card,
    .contact-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ========================================
   Accessibility - High Contrast Mode
   ======================================== */

@media (prefers-contrast: high) {

    :root {
        --color-navy: #000080;
        --color-text: #000000;
        --color-border: #000000;
    }

    .btn {
        border-width: 3px;
    }

    .form-group input,
    .form-group textarea {
        border-width: 2px;
    }
}

/* ========================================
   Dark Mode Support (Future Enhancement)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
    /* Currently not implemented per project requirements */
}
