/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   Optimized for better readability on phones
   ============================================ */

/* Mobile-First: Base styles for phones */
@media (max-width: 768px) {

    /* ===== GLOBAL MOBILE ADJUSTMENTS ===== */
    body {
        font-size: 14px;
        /* Decreased to 14px */
        line-height: 1.5;
    }

    /* ENABLE JUSTIFIED TEXT WITH HYPHENS */
    p,
    .hero-text,
    .service-description,
    .testimonial-text,
    .about-text,
    .section-subtitle {
        text-align: justify !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        word-break: normal !important;
        /* switch back to normal to avoid splitting words weirdly, hyphens should handle it */
        overflow-wrap: break-word;
        /* standard property */
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* ===== SECTIONS - TIGHTER PADDING ===== */
    section {
        padding: 2.5rem 0;
        /* Reduced from 4rem */
    }

    .section-header {
        margin-bottom: 1.5rem;
        /* Reduced from 3rem */
    }

    .section-title {
        font-size: 2rem !important;
        /* Reduced from 2.5rem */
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem !important;
        /* Reduced from 1.25rem */
        line-height: 1.5;
    }

    /* ===== HERO SECTION ===== */
    .hero {
        min-height: auto;
        /* Remove 100vh constraint for better fit */
        padding: 5rem 0 3rem;
    }

    .title-main {
        font-size: 2.25rem !important;
        /* Reduced from 2.75rem */
        line-height: 1.1;
    }

    .title-sub {
        font-size: 1.25rem !important;
        /* Reduced from 1.5rem */
        line-height: 1.3;
    }

    .hero-text {
        font-size: 1rem !important;
        /* Reduced from 1.125rem */
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-cta {
        gap: 1rem;
    }

    /* ===== BUTTONS - COMPACT BUT TOUCHABLE ===== */
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.75rem !important;
        /* Slightly deeper padding */
        font-size: 1rem !important;
        min-height: 48px;
    }

    .btn-large {
        padding: 1.25rem 2rem !important;
        font-size: 1.125rem !important;
    }

    /* ===== SERVICES SECTION ===== */
    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 0;
    }

    .service-image {
        height: 220px;
        /* Reduced height */
    }

    .service-content {
        padding: 1.5rem 1.25rem;
    }

    .service-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.9375rem !important;
        /* Reduced */
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .service-link {
        font-size: 1.0625rem !important;
        padding: 0.75rem 0;
    }

    /* ===== STATISTICS SECTION ===== */
    .stats-grid {
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem !important;
        min-height: 160px;
    }

    .stat-icon {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1rem;
    }

    .stat-icon svg {
        width: 40px !important;
        height: 40px !important;
    }

    .stat-number {
        font-size: 2rem !important;
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9375rem !important;
        line-height: 1.4;
    }

    /* ===== TESTIMONIALS SECTION ===== */
    .testimonials-wrapper {
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem !important;
    }

    .testimonial-stars {
        margin-bottom: 1rem;
    }

    .testimonial-stars svg {
        width: 20px !important;
        height: 20px !important;
    }

    .testimonial-text {
        font-size: 0.9375rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .author-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .author-avatar svg {
        width: 40px !important;
        height: 40px !important;
    }

    .author-info h4 {
        font-size: 1.125rem !important;
        margin-bottom: 0.25rem;
    }

    .author-info p {
        font-size: 0.875rem !important;
    }

    /* ===== ABOUT SECTION ===== */
    .about-wrapper {
        gap: 2rem;
    }

    .about-text {
        font-size: 0.9375rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .about-image {
        height: 280px;
    }

    /* ===== FAQ SECTION ===== */
    .faq-wrapper {
        padding: 0;
    }

    .faq-item {
        margin-bottom: 1rem;
    }

    .faq-question {
        padding: 1.25rem 1rem !important;
        font-size: 1rem !important;
    }

    .faq-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .faq-answer p {
        padding: 0 1rem 1.25rem !important;
        font-size: 0.9375rem !important;
        line-height: 1.6;
    }

    /* ===== CONTACT SECTION ===== */
    .contact-wrapper {
        gap: 2rem;
    }

    .contact-subtitle {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1.25rem !important;
    }

    .contact-form h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem 0.875rem !important;
        font-size: 0.9375rem !important;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 2.5rem 0 1.5rem !important;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
    }

    .footer-brand p {
        font-size: 0.9375rem !important;
        line-height: 1.6;
    }

    .footer-contact h4,
    .footer-links h4 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem;
    }

    .footer-contact ul,
    .footer-links ul {
        gap: 0.75rem;
    }

    .footer-contact a,
    .footer-links a {
        font-size: 0.9375rem !important;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.875rem !important;
    }

    /* ===== NAVIGATION ===== */
    .navbar {
        padding: 1rem 0 !important;
    }

    .logo-text {
        font-size: 1.125rem !important;
    }

    .logo-accent {
        font-size: 1.125rem !important;
    }

    .logo-img {
        height: 70px;
    }

    .hamburger {
        width: 28px !important;
        height: 28px !important;
    }

    .nav-menu {
        padding: 1.5rem 1.25rem !important;
    }

    .nav-menu li {
        margin-bottom: 0.25rem;
    }

    .nav-link {
        font-size: 1.125rem !important;
        padding: 0.875rem 0 !important;
    }

    .btn-whatsapp-nav {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
        margin-top: 1.25rem;
    }
}

/* Extra small phones (< 375px) */
@media (max-width: 374px) {
    .section-title {
        font-size: 2.25rem !important;
    }

    .title-main {
        font-size: 2.5rem !important;
    }

    .stat-number {
        font-size: 3rem !important;
    }
}

/* Larger phones and small tablets (375px - 640px) */
@media (min-width: 375px) and (max-width: 640px) {
    .section-title {
        font-size: 2.75rem !important;
    }

    .title-main {
        font-size: 3rem !important;
    }
}

/* Extra small phones (< 375px) */
@media (max-width: 374px) {
    .section-title {
        font-size: 1.75rem !important;
    }

    .title-main {
        font-size: 2rem !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .hero-text,
    p {
        font-size: 0.9375rem !important;
    }
}

/* Larger phones and small tablets (375px - 640px) */
@media (min-width: 375px) and (max-width: 640px) {

    /* Slightly larger headings for these devices if needed, 
       but keeping them compact as requested */
    .section-title {
        font-size: 2.25rem !important;
    }

    .title-main {
        font-size: 2.5rem !important;
    }
}