/* MailAtoll.com - Responsive Styles */
/* Mobile-first responsive design with tablet and desktop breakpoints */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    h4 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
        gap: var(--spacing-xl);
        box-shadow: none;
    }
    
    .nav-link {
        padding: var(--spacing-xs) 0;
    }
    
    /* Pre-Hero */
    .pre-hero-title {
        font-size: 2.5rem;
    }
    
    .pre-hero-text {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-cta .btn {
        flex: 1;
        min-width: 200px;
    }
    
    /* Post Card */
    .post-card {
        padding: var(--spacing-3xl);
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-quote {
        font-size: 1.25rem;
    }
    
    /* Pricing Grid */
    .pricing-grid {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }
    
    .pricing-card {
        flex: 1;
        min-width: 300px;
        max-width: 400px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-brand,
    .footer-contact,
    .footer-statement {
        flex: 1;
        min-width: 250px;
        text-align: left;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-statement {
        text-align: right;
    }
    
    .footer-links {
        align-items: flex-start;
    }
    
    .footer-legal {
        flex-basis: 100%;
    }
    
    /* About Page */
    .about-title {
        font-size: 3rem;
    }
    
    .about-body {
        font-size: 0.95rem; /* Consistent with base size - no responsive increase needed */
    }
    
    .about-cta {
        flex-direction: row;
    }
    
    .about-cta .btn {
        flex: 1;
        min-width: 200px;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
    
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    /* Typography */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    /* Sections */
    .pre-hero,
    .hero,
    .post-section,
    .packages-section,
    .footer {
        padding: var(--spacing-4xl) 0;
    }
    
    /* Hero */
    .hero-content {
        max-width: 900px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-body {
        font-size: 0.95rem; /* Consistent with base size - no responsive increase needed */
    }
    
    /* Post Card */
    .post-card {
        max-width: 900px;
        padding: var(--spacing-4xl);
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-quote {
        font-size: 1.375rem;
        padding-left: var(--spacing-2xl);
    }
    
    /* Pricing */
    .pricing-grid {
        gap: var(--spacing-3xl);
    }
    
    .pricing-card {
        padding: var(--spacing-3xl);
    }
    
    .pricing-title {
        font-size: 1.75rem;
    }
    
    .pricing-price {
        font-size: 3.5rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-4xl) 0;
    }
    
    .footer-content {
        gap: var(--spacing-3xl);
    }
    
    .footer-title {
        font-size: 1.75rem;
    }
    
    .footer-tagline {
        font-size: 1.125rem;
    }
    
    .footer-quote {
        font-size: 1.5rem;
    }
    
    /* About Page */
    .about-hero {
        padding: var(--spacing-4xl) 0;
    }
    
    .about-content {
        max-width: 900px;
    }
    
    .about-title {
        font-size: 3.5rem;
    }
    
    .about-body {
        font-size: 0.95rem; /* Consistent with base size - no responsive increase needed */
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        padding: 0;
    }
    
    /* Hero */
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    /* Post Card */
    .post-card {
        max-width: 1000px;
    }
    
    /* Pricing */
    .pricing-grid {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* About Page */
    .about-content {
        max-width: 1000px;
    }
}

/* Small Mobile Devices (max-width: 374px) */
@media (max-width: 374px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .pre-hero-title {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        padding: var(--spacing-xl);
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .pre-hero,
    .hero,
    .post-section,
    .packages-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero {
        padding-top: calc(var(--spacing-2xl) + 60px);
    }
    
    .pre-hero {
        margin-top: 60px;
        padding: var(--spacing-2xl) 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav {
        backdrop-filter: blur(20px);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 1.5px;
    }
}

/* Print Styles */
@media print {
    .nav,
    .btn,
    .hero-cta,
    .back-to-top,
    .footer-links,
    .pricing-toggle-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    .pre-hero,
    .hero,
    .post-section,
    .packages-section {
        padding: 2cm 0;
    }
    
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading::after {
        animation: none;
        display: none;
    }
    
    .toggle-slider-thumb.moving {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: var(--color-gray-900);
        --color-surface: var(--color-gray-800);
        --color-text: var(--color-gray-100);
        --color-text-light: var(--color-gray-300);
        --color-border: var(--color-gray-700);
    }
    
    .nav {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--color-gray-800);
    }
    
    .nav-logo {
        color: var(--color-gray-100);
    }
    
    .nav-link {
        color: var(--color-gray-300);
    }
    
    .pre-hero {
        background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-900) 100%);
    }
    
    .hero {
        background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-900) 100%);
    }
    
    .post-section {
        background-color: var(--color-gray-800);
    }
    
    .post-card {
        background-color: var(--color-gray-800);
        border: 1px solid var(--color-gray-700);
    }
    
    .pricing-toggle-card,
    .pricing-card {
        background-color: var(--color-gray-800);
        border-color: var(--color-gray-700);
    }
    
    .toggle-option {
        background-color: var(--color-gray-800);
        border-color: var(--color-gray-700);
    }
    
    .toggle-option.active {
        background-color: var(--color-gray-700);
    }
    
    .btn-secondary {
        background-color: var(--color-gray-800);
        color: var(--color-gray-300);
        border-color: var(--color-gray-600);
    }
    
    .btn-outline {
        color: var(--color-primary-400);
        border-color: var(--color-primary-400);
    }
    
    .btn-outline:hover {
        background-color: var(--color-primary-600);
        color: white;
    }
    
    .footer {
        background-color: var(--color-gray-950);
    }
}
