/* ========================================
   99-RESPONSIVE.CSS - NK Insurance
   Global Responsive & Media Query Overrides
   ======================================== */

/* ========================================
   Extra Large Devices (1400px and up)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ========================================
   Large Devices (1200px to 1399px)
   ======================================== */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ========================================
   Medium Devices (992px to 1199px)
   ======================================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Adjust grid layouts */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Tablets (768px to 991px)
   ======================================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Section spacing */
    .section {
        padding: var(--spacing-3xl) 0;
    }
    
    /* Grid adjustments */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: var(--spacing-2xl);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* About section */
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    /* Quote section */
    .quote-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact section */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Mobile Landscape (576px to 767px)
   ======================================== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Section spacing */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    /* All grids to single column */
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .recruitment-benefits,
    .agent-testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-base);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Card padding reduction */
    .feature-card,
    .service-card,
    .benefit-card,
    .testimonial-card {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: var(--spacing-xl);
    }
}

/* ========================================
   Mobile Portrait (up to 575px)
   ======================================== */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography - smaller sizes */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    p {
        font-size: var(--font-sm);
    }
    
    /* Section spacing - tighter */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Hero mobile optimizations */
    .hero-badge {
        font-size: var(--font-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-2xl);
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--spacing-lg);
        max-width: 100%;
    }
    
    /* Navigation mobile */
    .top-banner {
        font-size: var(--font-xs);
        padding: var(--spacing-sm) 0;
    }
    
    .top-banner .container {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .benefit-card,
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon,
    .service-icon,
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Forms mobile */
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Buttons mobile */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-sm);
        width: 100%;
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    /* Quote form mobile */
    .quote-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .form-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .form-tab {
        flex-shrink: 0;
        font-size: var(--font-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* Testimonials mobile */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Contact mobile */
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods .method {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer mobile */
    .social-links {
        justify-content: center;
        margin-top: var(--spacing-lg);
    }
    
    .footer-bottom {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-bottom p {
        font-size: var(--font-xs);
    }
    
    /* Utility overrides */
    .d-none-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
}

/* ========================================
   Extra Small Devices (up to 375px)
   ======================================== */
@media (max-width: 375px) {
    /* Even tighter spacing for very small screens */
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    /* Hide non-essential elements */
    .top-banner,
    .navbar,
    .hero-cta,
    .back-to-top,
    .social-links,
    .newsletter-signup,
    .footer {
        display: none !important;
    }
    
    /* Adjust layout for print */
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    /* Remove backgrounds and shadows */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Ensure links are visible */
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   Accessibility - Reduced Motion
   ======================================== */
@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;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Can implement dark mode styles here if needed */
}

/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}