/* TitleOptimizer AI - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        padding: 1rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    
    /* Section padding mobile */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact section */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Hide decorative elements on mobile */
    #hero::before {
        display: none;
    }
    
    /* Process section mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards mobile */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 85vh;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
        display: inline-block;
    }
    
    /* Team member images */
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Navigation */
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    
    /* Card adjustments */
    .card-columns {
        column-count: 2;
    }
    
    /* Team member images */
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    .container {
        max-width: 960px;
    }
    
    /* Card columns */
    .card-columns {
        column-count: 3;
    }
    
    /* Services grid */
    .services-grid .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Larger hero text */
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
    
    /* Card hover effects enhanced */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@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;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    #header,
    #footer,
    .breadcrumb,
    .btn {
        display: none;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .btn:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #006600;
        --accent-color: #cc6600;
        --warning-color: #cc0000;
        --info-color: #6600cc;
        --border-color: #333333;
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Utility classes for responsive design */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
    
    .text-sm-center {
        text-align: center !important;
    }
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
} 