:root {
    --rimir-dark: #5b7189;
    --health-color: #28a745;
    --digital-color: #f39c12;
    --studio-color: #00adef;
    --bg-color: #f0f4f8;
    --white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-top { height: 45px; }

.nav-menu a {
    text-decoration: none;
    color: var(--rimir-dark);
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.flip-card {
    height: 480px; /* Aumentado levemente para caber o destaque */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 40px 30px;
    text-align: center;
}

.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f8fafc;
}

.icon-health { color: var(--health-color); border-bottom: 3px solid var(--health-color); }
.icon-digital { color: var(--digital-color); border-bottom: 3px solid var(--digital-color); }
.icon-studio { color: var(--studio-color); border-bottom: 3px solid var(--studio-color); }

.front h3 { font-size: 1.4rem; color: #1e293b; }
.front p { font-size: 0.95rem; color: var(--text-light); }

.btn-detail {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rimir-dark);
    background: #f1f5f9;
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: 0.2s;
}

.back {
    transform: rotateY(180deg);
    padding: 30px;
    border-top: 6px solid transparent;
    display: flex;
    flex-direction: column;
}

.border-health { border-top-color: var(--health-color); }
.border-digital { border-top-color: var(--digital-color); }
.border-studio { border-top-color: var(--studio-color); }

.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-header h3 { font-size: 1.1rem; color: var(--rimir-dark); font-weight: 700; }

.back-return {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-intro { font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; color: #1e293b; }

.list-features { list-style: none; flex-grow: 1; }
.list-features li {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.border-health .list-features li i { color: var(--health-color); }
.border-digital .list-features li i { color: var(--digital-color); }
.border-studio .list-features li i { color: var(--studio-color); }

/* Badge Emocional */
.badge-value {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.v-health { background: #e8f5e9; color: var(--health-color); }
.v-digital { background: #fff3e0; color: var(--digital-color); }
.v-studio { background: #e1f5fe; color: var(--studio-color); }

.contact-section {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.contact-box {
    background: var(--white);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--rimir-dark);
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-box:hover {
    transform: translateY(-5px);
    background: var(--rimir-dark);
    color: var(--white);
}

@media (max-width: 600px) {
    .header { flex-direction: column; gap: 15px; }
    .flip-card { height: 500px; }
}