/* ====================================
   MOBILE STYLES - SERVIÇOS PAGE (servicos.html)
   Services Grid, Accordion, CTA
   ==================================== */

@media (max-width: 768px) {
    /* Hero Section - Serviços */
    .hero h1 {
        font-size: 24px !important;
        line-height: 1.35 !important;
        margin-bottom: 24px !important;
    }

    .hero p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 28px !important;
    }

    /* Services Grid - 3 colunas para 1 */
    section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Service Cards */
    .vertical-card-corp {
        padding: 24px 20px !important;
        min-height: auto !important;
        cursor: pointer;
    }

    /* Service card icon container */
    .vertical-card-corp > div[style*="display: flex"] > span[style*="width: 40px"] {
        width: 36px !important;
        height: 36px !important;
    }

    .vertical-card-corp > div[style*="display: flex"] > span[style*="width: 40px"] svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Service card expand button (top right) */
    .vertical-card-corp > div[style*="position: absolute"][style*="top: 16px"] {
        top: 12px !important;
        right: 12px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .vertical-card-corp > div[style*="position: absolute"][style*="top: 16px"] svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Service card content */
    .vertical-card-corp strong {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .vertical-card-corp span {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* Full-Stack Card - Grid column span */
    section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] > div[style*="grid-column: span 3"] {
        grid-column: span 1 !important;
        padding: 24px 20px !important;
        min-height: auto !important;
    }

    /* Full-Stack card badge */
    div[style*="grid-column: span 3"] > div[style*="position: absolute"][style*="COMPLETO"] {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    /* Full-Stack card bottom button */
    div[style*="grid-column: span 3"] > div[style*="position: absolute"][style*="bottom: 28px"] {
        bottom: 20px !important;
        right: 20px !important;
        width: 36px !important;
        height: 36px !important;
    }

    div[style*="grid-column: span 3"] > div[style*="position: absolute"][style*="bottom: 28px"] svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Accordion Container */
    .services-accordion {
        max-width: 100% !important;
        margin: 30px auto !important;
    }

    /* Accordion Item */
    .accordion-item {
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    /* Accordion Header */
    .accordion-header {
        padding: 20px 16px !important;
        gap: 12px !important;
    }

    /* Accordion Icon (arrow) */
    .accordion-icon {
        font-size: 16px !important;
        margin-right: 10px !important;
        min-width: 16px !important;
    }

    /* Accordion Icon Container (service icon) */
    .accordion-header > span[style*="width: 40px"] {
        width: 36px !important;
        height: 36px !important;
        margin-right: 12px !important;
    }

    .accordion-header > span[style*="width: 40px"] svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Accordion Title */
    .accordion-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    /* Accordion Subtitle */
    .accordion-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Accordion Content Inner */
    .accordion-content-inner {
        padding: 0 16px 20px 48px !important;
    }

    /* Service Details inside Accordion */
    .service-details h4 {
        font-size: 16px !important;
        margin-bottom: 14px !important;
        margin-top: 20px !important;
    }

    .service-details p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 14px !important;
    }

    .service-details ul {
        margin: 16px 0 !important;
    }

    .service-details ul li {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        padding-left: 24px !important;
        line-height: 1.6 !important;
    }

    .service-details ul li::before {
        font-size: 16px !important;
    }

    .service-details ul li strong {
        font-size: 13px !important;
    }

    /* Highlighted boxes inside accordion */
    .service-details em {
        padding: 18px !important;
        border-radius: 10px !important;
        border-width: 2px !important;
        margin-top: 20px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .service-details em strong {
        font-size: 13px !important;
    }

    /* CTA Section */
    section > .container > div[style*="background: linear-gradient"][style*="padding: 60px"] {
        padding: 40px 24px !important;
        border-radius: 12px !important;
    }

    section > .container > div[style*="background: linear-gradient"] h3 {
        font-size: 22px !important;
        margin-bottom: 16px !important;
    }

    section > .container > div[style*="background: linear-gradient"] p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }

    section > .container > div[style*="background: linear-gradient"] a.cta-button {
        padding: 14px 28px !important;
        font-size: 14px !important;
        display: block !important;
        width: 100% !important;
    }

    section > .container > div[style*="background: linear-gradient"] p[style*="margin-top: 18px"] {
        font-size: 12px !important;
        margin-top: 14px !important;
    }

    /* Overview cards hover effects - disable transform on mobile */
    .overview-card:hover {
        transform: none !important;
    }

    .accordion-item:hover {
        transform: none !important;
    }
}

/* Extra small devices (< 400px) */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 22px !important;
    }

    .accordion-header {
        padding: 18px 14px !important;
    }

    .accordion-content-inner {
        padding: 0 14px 18px 40px !important;
    }

    .accordion-title {
        font-size: 15px !important;
    }

    .accordion-subtitle {
        font-size: 11px !important;
    }

    .service-details ul li {
        font-size: 12px !important;
    }
}
