/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   Multiple breakpoints for every screen size
   ============================================ */

/* Base responsive adjustments */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   BREAKPOINT: 1200px (Large Desktop)
   ============================================ */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 32px;
    }
    
    .services-grid {
        gap: 28px;
    }
}

/* ============================================
   BREAKPOINT: 1024px (Tablet Landscape)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 28px;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .contact-wrapper {
        padding: 40px;
        gap: 48px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ============================================
   BREAKPOINT: 900px (Small Tablet)
   ============================================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-row {
        justify-content: space-between;
    }
}

/* ============================================
   BREAKPOINT: 768px (Tablet Portrait)
   ============================================ */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 24px;
    }
    
    /* Navigation */
    .nav-toggle {
        display: block;
        font-size: 1.25rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
    
    .nav-links {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 32px 24px;
        gap: 24px;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        border-bottom: 1px solid var(--border-light);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 8px 0;
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto 1.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about {
        padding: 64px 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-lead {
        font-size: 1rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .about-quote {
        padding: 16px 20px;
    }
    
    .about-quote p {
        font-size: 0.9rem;
    }
    
    .experience-badge {
        bottom: 16px;
        right: 16px;
        padding: 8px 16px;
    }
    
    .experience-badge .years {
        font-size: 1.25rem;
    }
    
    /* Services Section */
    .services {
        padding: 64px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
        padding: 0 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    /* Testimonials Section */
    .testimonials {
        padding: 64px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .testimonial-card {
        padding: 28px 24px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-author img {
        width: 44px;
        height: 44px;
    }
    
    /* Contact Section */
    .contact {
        padding: 64px 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-info > p {
        font-size: 0.9rem;
    }
    
    .contact-methods {
        gap: 20px;
    }
    
    .contact-method i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 48px 0 28px;
    }
    
    .footer-brand h3 {
        font-size: 1.25rem;
    }
    
    .footer-brand p {
        font-size: 0.75rem;
    }
    
    .footer-nav {
        margin: 24px 0;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
    }
    
    .footer-disclaimer {
        font-size: 0.7rem;
        padding: 0 16px;
    }
}

/* ============================================
   BREAKPOINT: 640px (Mobile Landscape)
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .contact-wrapper {
        padding: 24px 20px;
    }
    
    .contact-info h2 {
        font-size: 1.75rem;
    }
    
    .contact-method {
        gap: 12px;
    }
    
    .contact-method i {
        width: 36px;
        height: 36px;
    }
    
    .contact-method strong {
        font-size: 0.75rem;
    }
    
    .contact-method a,
    .contact-method span {
        font-size: 0.85rem;
    }
}

/* ============================================
   BREAKPOINT: 480px (Mobile Portrait)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* Hero */
    .hero {
        min-height: 550px;
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 0.85rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        max-width: 100%;
    }
    
    .cta-button {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* About */
    .about {
        padding: 48px 0;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-lead {
        font-size: 0.9rem;
    }
    
    .about-text {
        font-size: 0.85rem;
    }
    
    .stat-num {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .about-quote p {
        font-size: 0.85rem;
    }
    
    .independent-tag span {
        font-size: 0.7rem;
    }
    
    .experience-badge {
        bottom: 12px;
        right: 12px;
        padding: 6px 12px;
    }
    
    .experience-badge .years {
        font-size: 1rem;
    }
    
    .experience-badge span:last-child {
        font-size: 0.6rem;
    }
    
    /* Services */
    .services {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 20px 16px;
    }
    
    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }
    
    .service-icon i {
        font-size: 1.125rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 48px 0;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-quote {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .testimonial-author {
        gap: 12px;
    }
    
    .testimonial-author img {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-author h4 {
        font-size: 0.9rem;
    }
    
    .testimonial-author span {
        font-size: 0.7rem;
    }
    
    /* Contact */
    .contact {
        padding: 48px 0;
    }
    
    .contact-wrapper {
        padding: 20px 16px;
        gap: 32px;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .contact-info > p {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }
    
    .contact-methods {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .contact-method i {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .contact-method strong {
        font-size: 0.7rem;
    }
    
    .contact-method a,
    .contact-method span {
        font-size: 0.8rem;
    }
    
    .social a {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-brand h3 {
        font-size: 1.125rem;
    }
    
    .footer-brand p {
        font-size: 0.7rem;
    }
    
    .footer-nav {
        gap: 16px;
        margin: 20px 0;
    }
    
    .footer-nav a {
        font-size: 0.75rem;
    }
    
    .footer-disclaimer {
        font-size: 0.65rem;
    }
}

/* ============================================
   BREAKPOINT: 375px (Small Mobile)
   ============================================ */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.75rem;
    }
    
    .about-content h2 {
        font-size: 1.35rem;
    }
    
    .section-header h2 {
        font-size: 1.35rem;
    }
    
    .service-card {
        padding: 16px 14px;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
    }
    
    .testimonial-card {
        padding: 16px;
    }
    
    .contact-wrapper {
        padding: 16px 12px;
    }
    
    .contact-info h2 {
        font-size: 1.35rem;
    }
    
    .contact-method i {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .contact-method a,
    .contact-method span {
        font-size: 0.75rem;
    }
}

/* ============================================
   BREAKPOINT: 320px (Very Small Mobile)
   ============================================ */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.35rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .contact-method a,
    .contact-method span {
        font-size: 0.7rem;
        word-break: break-word;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   IMAGE SPECIFIC FIXES
   ============================================ */
@media (max-width: 768px) {
    .about-image {
        max-width: 100%;
    }
    
    .about-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .testimonial-author img {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .about-image {
        border-radius: 20px;
    }
    
    .testimonial-author img {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   FLEXIBLE GRID ADJUSTMENTS
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .listing-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .cta-button:active,
    .submit-btn:active {
        transform: scale(0.98);
    }
    
    .nav-links a {
        padding: 12px 0;
    }
}

/* ============================================
   PRINT STYLES (Optional)
   ============================================ */
@media print {
    .navbar,
    .cta-button,
    .contact-form,
    .social,
    .nav-toggle {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        color: black;
    }
    
    .hero {
        height: auto;
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .hero-overlay {
        display: none;
    }
}