/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile: up to 767px */
@media (max-width: 767px) {
    :root {
        --spacing-margin: 30px;
    }

    .enclosure {
        margin: 10px;
        border-radius: 15px;
    }

    /* Header */
    header {
        padding: 40px 20px 20px 20px;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header .logo {
        font-size: 28px;
    }

    header nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li a {
        font-size: 15px;
    }

    /* Hero */
    .hero {
        min-height: 350px;
        margin: 0 10px 10px 10px;
        padding: 30px 20px;
        background-image: url('img/hero-mobile.png');
        background-position: 65% center;
    }

    .hero .container {
        min-height: 350px;
        padding: 30px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Services */
    .services {
        padding: 40px 20px;
    }

    .services h2 {
        font-size: 32px;
        margin-bottom: 25px;
        font-weight: 300;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        margin: 0;
    }

    .service-card {
        padding: 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 18px;
        margin: 0 0 12px 0;
        font-weight: 600;
        line-height: 1.3;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100%;
    }

    .service-card h3 span {
        display: inline !important;
    }

    .service-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
        margin: 0 0 16px 0;
        color: var(--color-text-medium);
        max-width: 100%;
    }

    .service-card button {
        font-size: 14px;
        padding: 10px 24px;
        margin-top: 0;
        align-self: flex-end;
    }

    /* Testimonials */
    .testimonials {
        padding: 30px 20px;
    }

    .testimonials h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* About */
    .about .container {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 30px;
    }

    .about-image {
        width: 100%;
        max-width: 280px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content .signature {
        font-size: 38px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-content button,
    .about-content .btn {
        margin: 0 auto;
    }

    /* Contact */
    .contact {
        padding: 20px;
    }

    .contact .container {
        flex-direction: column;
        padding: 35px 25px;
        gap: 30px;
    }

    .contact h2 {
        font-size: 28px;
    }

    .contact-intro {
        font-size: 16px;
    }

    .contact-content,
    .contact-grid {
        width: 100%;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item a {
        font-size: 15px;
    }

    .contact-item canvas {
        font-size: 14px;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }

    .footer-name {
        font-size: 26px;
    }

    .footer-subtitle {
        font-size: 15px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-text {
        flex-direction: column;
        gap: 5px;
    }

    .footer-subtitle {
        display: none;
    }

    /* Dialog */
    dialog {
        width: 95%;
        padding: 30px 20px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .dialog-content {
        padding: 40px 20px;
    }

    .dialog-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .dialog-icon img {
        width: 60px;
        height: 60px;
    }

    .dialog-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .dialog-content h3 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }

    .dialog-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .dialog-content ul li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    /* Scroll to Top Button */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Touch targets - ensure minimum 44px for better mobile usability */
    button,
    .btn,
    .service-card,
    nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    button {
        font-size: 15px;
        padding: 15px 35px;
    }

    /* Adjust font sizes for better readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    p {
        font-size: 16px;
    }

    /* Ensure images and canvas are responsive */
    img,
    canvas {
        max-width: 100%;
        height: auto;
    }

    /* Service and testimonial cards - better spacing */
    .service-card,
    .testimonial-card {
        min-height: auto;
    }

    /* Instagram link icon */
    .social-links img {
        width: 24px;
        height: 24px;
    }
}
