/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .company-name {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 3rem 2rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .sidebar {
        top: 120px;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .search-container {
        max-width: 500px;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        max-width: 450px;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .company-card,
    .company-details,
    .partners-section,
    .related-companies {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .company-legal-name {
        font-size: 1rem;
    }
    
    .detail-group h3 {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-form {
        border-radius: 15px;
        padding: 0.25rem;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        border-radius: 15px;
        margin-bottom: 0.75rem;
    }
    
    .search-btn {
        border-radius: 15px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .results-section {
        padding: 2rem 0;
    }
    
    .company-card,
    .company-details,
    .partners-section,
    .related-companies {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 10px;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    .company-logo {
        width: 70px;
        height: 70px;
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }
    
    .company-name {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .company-legal-name {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .company-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .company-cnpj {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .cnpj-number {
        font-size: 1.1rem;
    }
    
    .detail-group {
        margin-bottom: 1.5rem;
    }
    
    .detail-group h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }
    
    .detail-group h3 i {
        font-size: 1rem;
    }
    
    .detail-item {
        padding: 0.625rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .detail-item .label {
        font-size: 0.9rem;
        min-width: auto;
        font-weight: 600;
    }
    
    .detail-item .value {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.4;
    }
    
    .partners-section h3,
    .related-companies h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .partner-card {
        padding: 1.25rem;
    }
    
    .partner-name {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .partner-details span {
        font-size: 0.85rem;
    }
    
    .related-company-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .related-company-card h4 {
        font-size: 1rem;
    }
    
    .related-cnpj {
        font-size: 0.85rem;
    }
    
    .sidebar {
        margin-top: 1.5rem;
    }
    
    .share-widget,
    .stats-widget,
    .ads-widget {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 10px;
    }
    
    .share-widget h4,
    .stats-widget h4,
    .ads-widget h4 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }
    
    .share-buttons .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 0.625rem 0;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .ad-placeholder {
        padding: 1.5rem;
    }
    
    .features-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.875rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.375rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-info {
        margin-bottom: 1.25rem;
    }
    
    .contact-item {
        margin-bottom: 0.875rem;
        font-size: 0.9rem;
    }
    
    .contact-item i {
        width: 18px;
        margin-right: 0.625rem;
    }
    
    .newsletter h6 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .newsletter p {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
    }
    
    .newsletter-form .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .newsletter-form .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .footer-divider {
        margin: 1.5rem 0 0.75rem;
    }
    
    .footer-bottom {
        padding-top: 0.75rem;
        text-align: center;
    }
    
    .copyright {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .loading-spinner p {
        font-size: 1rem;
    }
    
    .alert {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        margin: 0 1rem;
    }
    
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .search-container {
        max-width: 400px;
    }
    
    .company-card,
    .company-details,
    .partners-section,
    .related-companies {
        padding: 1rem;
    }
    
    .company-name {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .stats-section {
        padding: 1.5rem 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .sidebar,
    .back-to-top,
    .loading-overlay,
    .search-container,
    .share-widget,
    .ads-widget {
        display: none !important;
    }
    
    .company-card,
    .company-details,
    .partners-section,
    .related-companies {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .stats-section {
        background: white !important;
        color: black !important;
    }
    
    .features-section {
        background: white !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
} 