﻿/* ===== VARIÃVEIS ===== */
:root {
    --cta-green: #2ecf4f;
    --cta-green-hover: #2ecf4f;
    --border-light: #eaeaea;
    --text-primary: #2a2a2a;
    --text-secondary: #4a4a4a;
    --bg-white: #ffffff;
    --section-bg-normal: #ffffff;
    --section-bg-alt: #f9f9f9;
    --section-padding-top: 80px;
    --section-padding-bottom: 40px;
    --container-padding-x: 20px;
    --grid-gap: 30px;
    --card-border-radius: 12px;
    --card-padding: 24px;
    --card-padding-mobile: 20px;
    --card-gap: 16px;
    --space-3xl: 40px;
    --space-4xl: 60px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--section-bg-normal);
    color: #1a1a1a;
    padding: var(--section-padding-top) 0 var(--section-padding-bottom);
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.page-header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 52px;
    color: #2a2a2a;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 24px;
    font-weight: 620;
    line-height: 1.35;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--cta-green) 50%, transparent 100%);
    border-radius: 2px;
}

.page-header p {
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 0;
    background: var(--section-bg-alt);
    padding: var(--section-padding-top) var(--container-padding-x) var(--section-padding-bottom);
    margin-top: var(--space-4xl);
    border-radius: 12px;
}

/* ===== SERVICE CARD ===== */
.service-card {
    background: var(--bg-white);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cta-green) 0%, #2ecf4f 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card-trigger {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(46, 207, 79, 0.12);
    border-color: var(--cta-green);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
    background: linear-gradient(135deg, #f6f7f6 0%, #ecefee 100%);
    flex-shrink: 0;
    border: 1px solid #dde2df;
}

.service-card:hover .service-icon {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #f0f1ee 0%, #e8e9e6 100%);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: #2f3a35;
    stroke-width: 1.8;
    fill: none;
    transition: stroke 0.4s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--cta-green);
}

.service-card h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 20px;
    color: #2a2a2a;
    margin: 0;
    letter-spacing: 0.2px;
    font-weight: 610;
}

.service-description {
    color: #3a3a3a;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.service-card-hint {
    margin-top: auto;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1d7a4a;
}

/* ===== SERVICE LIST ===== */
.service-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: #3a3a3a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item-icon {
    color: #1d7a4a;
    display: flex;
    align-items: center;
    min-width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-item-text {
    flex: 1;
}

/* ===== SERVICE DETAIL MODAL ===== */
.service-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.service-detail-dialog {
    width: min(760px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e3e3e3;
    padding: 22px;
    padding-top: 56px;
    position: relative;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.service-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    font-size: 26px;
    color: #4a4a4a;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-detail-media {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 240px;
    background: linear-gradient(135deg, #f3f5f4 0%, #e9eeeb 100%);
    border: 1px solid #dde4e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.service-detail-placeholder {
    width: 100%;
    height: 240px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #5e6762;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px;
}

.service-detail-title {
    margin: 0 0 10px;
    font-size: 28px;
    color: #202020;
}

.service-detail-description {
    margin: 0 0 18px;
    color: #4a4a4a;
    line-height: 1.65;
}

.service-detail-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
    color: #2f2f2f;
}

.service-detail-item:last-child {
    border-bottom: 0;
}

.service-detail-item-icon {
    color: #1d7a4a;
    font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(160deg, #2c463b 0%, #20342d 100%);
    color: #ffffff;
    padding: var(--space-4xl) var(--space-3xl);
    border-radius: 12px;
    text-align: center;
    margin-top: var(--space-4xl);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.cta-section h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 40px;
    color: white;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
    font-weight: 620;
    text-transform: uppercase;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0 0 24px 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    background-color: var(--cta-green);
    color: #ffffff;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 22px rgba(46, 207, 79, 0.28);
}

.btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(46, 207, 79, 0.36);
    background-color: var(--cta-green-hover);
    color: #ffffff;
}

.btn-whatsapp:active {
    transform: translateY(-2px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    max-width: 600px;
    margin: 40px auto;
}

.empty-state h2 {
    font-family: 'Michroma', sans-serif;
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 38px;
        margin-bottom: 12px;
        padding-bottom: 20px;
    }

    .page-header h1::after {
        width: 50px;
        height: 2px;
    }

    .page-header p {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 50px 20px;
    }

    .service-card {
        padding: var(--card-padding-mobile);
        gap: 14px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-header {
        gap: 10px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
    }

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

    .service-item {
        font-size: 12px;
        padding: 6px 0;
    }

    .cta-section {
        padding: 48px 28px;
        margin-top: 40px;
    }

    .cta-section h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .cta-section p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .btn-whatsapp {
        width: 100%;
        padding: 14px 30px;
    }

    .service-detail-dialog {
        padding: 16px;
        padding-top: 52px;
    }

    .service-detail-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 14px;
    }

    .services-grid {
        padding: 40px 15px;
    }

    .service-card h3 {
        font-size: 17px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .btn-whatsapp {
        padding: 12px 24px;
        font-size: 14px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state h2 {
        font-size: 24px;
    }
}

@media (max-width: 430px) {
    .services-grid {
        padding: 32px 12px;
        gap: 14px;
    }

    .service-card {
        padding: 14px;
        border-radius: 10px;
    }

    .service-header {
        gap: 8px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
    }

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

    .service-card h3 {
        font-size: 16px;
    }

    .service-description {
        font-size: 13px;
    }

    .service-detail-modal {
        padding: 10px;
    }

    .service-detail-dialog {
        border-radius: 10px;
        padding: 14px;
        padding-top: 48px;
    }

    .service-detail-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .service-detail-title {
        font-size: 20px;
    }

    .service-detail-description {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 40px;
        padding: 44px 18px;
    }

    .cta-section {
        padding: 44px 24px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 48px 0 26px;
    }

    .page-header h1 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .page-header p {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 12px;
        border-radius: 10px;
    }

    .service-card {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .service-description {
        font-size: 13px;
    }

    .service-detail-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .service-detail-dialog {
        width: 100%;
        border-radius: 12px;
        max-height: calc(100dvh - 10px);
        padding: 14px;
        padding-top: 46px;
    }

    .service-detail-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
        top: 8px;
        right: 8px;
    }

    .service-detail-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .service-detail-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .cta-section {
        padding: 36px 16px;
    }

    .cta-section h2 {
        font-size: clamp(22px, 6.2vw, 30px);
    }

    .btn-whatsapp {
        min-height: 46px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .services-grid {
        padding: 22px 10px;
    }

    .service-icon {
        width: 38px;
        height: 38px;
    }

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

    .service-card h3 {
        font-size: 15px;
    }

    .service-detail-item {
        font-size: 14px;
    }
}

@media (max-width: 359px) {
    .service-card {
        padding: 12px 10px;
    }

    .service-card h3 {
        font-size: 14px;
    }

    .service-description {
        font-size: 12px;
    }

    .service-detail-dialog {
        padding: 12px 10px;
        padding-top: 42px;
    }
}


