/* Life Church — Cursos CMN Hombridade */

.cmn-page {
    --cmn-gold: #c9a84c;
    --cmn-gold-lt: #e8c96a;
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cmn-intro {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    padding: 0 clamp(1rem, 4vw, 2rem);
    text-align: center;
}

.cmn-intro p {
    color: rgba(242, 236, 225, 0.88);
    font-size: clamp(0.95rem, 2.4vw, 1.08rem);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.cmn-quote {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.1);
    color: var(--cmn-gold-lt);
    font-size: clamp(0.82rem, 2vw, 0.92rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cmn-grid-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.cmn-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 236, 225, 0.55);
}

.cmn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cmn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .cmn-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.cmn-card {
    container-type: inline-size;
    border-radius: 1.125rem;
    overflow: hidden;
    background: rgba(14, 12, 10, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cmn-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
}

.cmn-card-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}

.cmn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cmn-card:hover .cmn-card-media img {
    transform: scale(1.04);
}

.cmn-card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.cmn-card-pub {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 236, 225, 0.5);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.cmn-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.2rem, 4.5cqi, 1.45rem);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.65rem;
}

.cmn-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.cmn-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(242, 236, 225, 0.75);
}

.cmn-chip.gold {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.3);
    color: var(--cmn-gold-lt);
}

.cmn-card details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
}

.cmn-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cmn-gold);
    user-select: none;
}

.cmn-card summary::-webkit-details-marker { display: none; }

.cmn-card summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.cmn-card details[open] summary::after {
    transform: rotate(180deg);
}

.cmn-card-desc {
    padding: 0.65rem 0 0.15rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(242, 236, 225, 0.78);
}

.cmn-cta {
    max-width: 40rem;
    margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    border-radius: 1.25rem;
    background: rgba(14, 12, 10, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201, 168, 76, 0.25);
}

.cmn-cta h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cmn-cta p {
    color: rgba(242, 236, 225, 0.75);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
}

.cmn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0 1.35rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #e8c96a, #c9a84c);
    color: #1a1208;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cmn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.4);
}

.cmn-btn-interest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.85rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #e8c96a, #c9a84c);
    color: #1a1208;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cmn-btn-interest:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(201, 168, 76, 0.38);
}

.cmn-flash-ok {
    max-width: 46rem;
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #6ee7a0;
    font-size: 0.9rem;
    text-align: center;
}

.cmn-link-muted {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--cmn-muted, rgba(242, 236, 225, 0.65));
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.cmn-back-pos {
    max-width: 72rem;
    margin: 0 auto 1rem;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.cmn-back-pos a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    color: rgba(242, 236, 225, 0.65);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.cmn-back-pos a:hover { color: var(--cmn-gold-lt); }

/* Modal interesse */
.cmn-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.cmn-modal.hidden { display: none !important; }

.cmn-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cmn-modal-box {
    position: relative;
    width: 100%;
    max-width: 22rem;
    max-height: min(92dvh, 640px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 1.25rem 1.15rem 1.35rem;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #111;
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
    animation: cmnSlideUp 0.3s ease;
}

@media (min-width: 640px) {
    .cmn-modal { align-items: center; padding: 1rem; }
    .cmn-modal-box { border-radius: 1.25rem; max-height: 90dvh; }
}

@keyframes cmnSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cmn-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
}

.cmn-modal-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cmn-gold-lt);
    margin-bottom: 0.25rem;
}

.cmn-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
    padding-right: 2rem;
}

.cmn-modal-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.cmn-modal-fld { margin-bottom: 0.9rem; }

.cmn-modal-fld label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
}

.cmn-modal-inp {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #f6f1e7;
    color: #1a1208;
    font: inherit;
    font-size: 1rem;
}

.cmn-modal-nasc { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.45rem; }

.cmn-modal-nasc-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
    display: block;
}

.cmn-modal-err {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fca5a5;
    font-size: 0.82rem;
}

.cmn-toast {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cmn-toast.ok { background: rgba(74, 222, 128, 0.95); color: #052e16; }
.cmn-toast.err { background: rgba(248, 113, 113, 0.95); color: #450a0a; }
.cmn-toast.hidden { display: none !important; }

button.cmn-btn-interest { cursor: pointer; font-family: inherit; }
