/* ============================================================
   CENTRAL DO RH – Stylesheet v3
   Depende de base.css
   ============================================================ */

body { background: #11102f; }
#central-rh { margin-bottom: 0; }

@keyframes crh-card-blocked {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-5px); }
    30%  { transform: translateX(5px); }
    45%  { transform: translateX(-3px); }
    60%  { transform: translateX(3px); }
    80%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* ── HERO ──────────────────────────────────────────────────── */
.crh-hero {
    background-color: #0b1140;
    background-image: url('/assets/media-central-rh/page-home/background-hometopo.webp');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 64px 0 64px;
    overflow: hidden;
}

/* Dot-grid overlay */
.crh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Gradiente que cobre a borda esquerda da imagem de background */
.crh-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0b1140 0%, #0b1140 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.crh-hero__container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.crh-hero__content {
    max-width: 560px;
}

.crh-hero__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #24cdbc;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 14px;
}

.crh-hero__title {
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 18px;
}

.crh-hero__accent {
    color: #24cdbc;
}

.crh-hero__desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 30px;
}

.crh-hero__search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 4px;
    max-width: 430px;
}

.crh-hero__search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    padding: 9px 14px;
}

.crh-hero__search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.crh-hero__search button {
    background: #003087;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: background var(--transition);
}

.crh-hero__search button:hover {
    background: #001f5e;
}

/* Widget card */
.crh-hero__widget-wrap {
    align-self: center;
}

.crh-hero__widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    width: 478px;
}

.crh-hero__widget-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #f0f2f6;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-primary);
}

.crh-hero__widget-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
}

/* ── FERRAMENTAS ────────────────────────────────────────────── */
.crh-tools {
    padding: 48px 0 0;
    background: #fff;
}

.crh-tools__layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 20px;
    align-items: start;
}

.crh-featured {
    background: linear-gradient(160deg, #0e1a56 0%, #0b1140 100%);
    border-radius: 12px;
    padding: 22px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 380px;
}

.crh-featured__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 3px 10px;
    border-radius: 20px;
}

.crh-featured__img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-top: 22px;
    flex-shrink: 0;
}

.crh-featured__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-top: 4px;
}

.crh-featured__desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.55;
    flex: 1;
}

.crh-featured__btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: background var(--transition);
}

.crh-featured__btn:hover { background: #c98900; color: #fff; }

.crh-featured__sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.crh-featured__promo-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.crh-featured__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.crh-featured__list li {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 7px;
}

.crh-featured__list li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Tools grid */
.crh-tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-content: start;
}

.crh-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 14px 26px;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}

.crh-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #f5a800 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
    border-radius: 12px 12px 0 0;
}

.crh-tool-card:hover::before {
    transform: scaleX(1);
}

.crh-tool-card:hover {
    border-color: rgba(232, 160, 0, 0.28);
    box-shadow: 0 6px 22px rgba(14, 26, 86, 0.09);
    transform: translateY(-2px);
}

.crh-tool-card__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f2f4fb;
    padding: 5px;
}

.crh-tool-card__body {
    flex: 1;
    min-width: 0;
}

.crh-tool-card__name {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 5px;
}

.crh-tool-card__desc {
    font-size: 0.69rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.crh-tool-card__arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef0f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--color-primary);
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.crh-tool-card:hover .crh-tool-card__arrow {
    background: var(--color-accent);
    color: #fff;
}

.crh-tool-card {
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition),
                opacity 0.22s ease, scale 0.22s ease;
    opacity: 1;
    scale: 1;
}

.crh-tool-card.is-hidden {
    display: none;
}

.crh-tool-card.is-entering {
    animation: crh-card-in 0.28s ease both;
}

@keyframes crh-card-in {
    from { opacity: 0; scale: 0.94; transform: translateY(6px); }
    to   { opacity: 1; scale: 1;    transform: translateY(0); }
}

.crh-tool-card__badge {
    display: none;
}

.crh-tool-card--soon {
    background: linear-gradient(145deg, #f4f6fd 0%, #edf0fb 100%);
    border: 1.5px dashed #c8cfea;
    cursor: not-allowed;
}

.crh-tool-card--soon * {
    cursor: not-allowed;
}

.crh-tool-card--soon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 11px;
    cursor: not-allowed;
    z-index: 2;
    background: transparent;
    transform: none !important;
    transition: background 0.18s ease;
}

.crh-tool-card--soon:hover {
    animation: crh-card-blocked 0.38s ease;
    border-color: rgba(180, 30, 30, 0.22);
    box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.06);
    transform: none;
}

.crh-tool-card--soon .crh-tool-card__img {
    opacity: 0.55;
    background: #e8eaf6;
    filter: grayscale(0.3);
}

.crh-tool-card--soon .crh-tool-card__name {
    color: #8892b0;
}

.crh-tool-card--soon .crh-tool-card__desc {
    color: #aab0c8;
}

.crh-tool-card--soon .crh-tool-card__arrow {
    display: none;
}

.crh-tool-card--soon::after {
    content: 'Em breve';
    position: absolute;
    bottom: 9px;
    right: 11px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7b87b8;
    background: #dde2f4;
    padding: 2px 8px;
    border-radius: 8px;
    line-height: 1.6;
}

.crh-tool-card--soon:hover {
    border-color: #b0b9db;
    box-shadow: none;
    transform: none;
}

/* ── CATEGORIAS ─────────────────────────────────────────────── */
.crh-categories {
    padding: 30px 0 44px;
}

.crh-categories__label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

.crh-categories__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crh-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #d8dde8;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    white-space: nowrap;
}

.crh-cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.crh-cat-pill.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── CTA ──────────────────────────────────────────────────── */
.crh-cta {
    padding: 36px 0;
    background: #f4f6fb;
    border-top: 1px solid #e4e8f4;
    border-bottom: 1px solid #e4e8f4;
}

.crh-cta .container {
    display: flex;
    justify-content: center;
}

.crh-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #FFA100 0%, #FF7A00 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(255, 122, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.crh-cta__btn::after {
    content: '→';
    font-size: 1rem;
    font-weight: 400;
    transition: transform 0.18s ease;
    display: inline-block;
}

.crh-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 122, 0, 0.42);
}

.crh-cta__btn:hover::after {
    transform: translateX(4px);
}

/* ── PRODUTO ──────────────────────────────────────────────── */
.crh-product {
    background: #fff;
    border-top: 1px solid #e8ecf4;
    border-bottom: 1px solid #e8ecf4;
    padding: 0;
}

.crh-product__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.18s ease;
}

.crh-product__inner:hover { opacity: 0.88; }

.crh-product__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    order: 1;
}

.crh-product__brand-icon {
    height: 44px;
    width: auto;
}

.crh-product__brand-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.03em;
    line-height: 1;
}

.crh-product__brand::after {
    content: 'Conheça o sistema completo →';
    font-size: 0.72rem;
    font-weight: 600;
    color: #FFA100;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 6px;
}

.crh-product__img {
    order: 2;
    max-height: 180px;
    width: auto;
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(14, 26, 86, 0.12);
}

/* ── BLOG ──────────────────────────────────────────────────── */
.crh-blog {
    padding: 48px 0 0;
    background: #f8f9fc;
}

.crh-blog__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.crh-blog__logo {
    height: 40px;
    width: auto;
    transition: opacity 0.18s ease;
}

.crh-blog__header a:hover .crh-blog__logo { opacity: 0.75; }

.crh-blog__subtitle {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}


.crh-blog__all-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color var(--transition);
    white-space: nowrap;
}

.crh-blog__all-link:hover { color: var(--color-primary); }

.crh-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.crh-blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #ececec;
    transition: transform var(--transition), box-shadow var(--transition);
}

.crh-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
}

.crh-blog-card__img-link { display: block; }

.crh-blog-card__img {
    height: 168px;
    overflow: hidden;
    background: #e8f0fe;
    position: relative;
}

.crh-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.crh-blog-card:hover .crh-blog-card__img img { transform: scale(1.05); }

.crh-blog-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crh-blog-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
}

.crh-blog-card__body {
    padding: 16px 16px 18px;
}

.crh-blog-card__title-link { text-decoration: none; }

.crh-blog-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.crh-blog-card__title-link:hover .crh-blog-card__title { color: var(--color-accent); }

.crh-blog-card__meta {
    font-size: 0.7rem;
    color: #999;
}

/* ── LINKS ÚTEIS ────────────────────────────────────────────── */
.crh-useful {
    background:
        radial-gradient(circle at 50% 12%, rgba(42, 37, 91, 0.72) 0%, rgba(10, 15, 42, 0) 48%),
        linear-gradient(180deg, #080d29 0%, #11102f 100%);
    padding: 38px 0 52px;
}

.crh-useful__header {
    margin-bottom: 18px;
}

.crh-useful__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.crh-useful__title-icon {
    color: #24cdbc;
    filter: drop-shadow(0 4px 8px rgba(36, 205, 188, 0.22));
}

.crh-useful__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 20px;
}

.crh-useful-card {
    min-height: 136px;
    background: linear-gradient(180deg, #ffbf27 0%, #efa100 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 16px 16px 14px;
    text-align: left;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    position: relative;
    box-shadow: 0 16px 32px rgba(5, 0, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.crh-useful-card::after {
    content: "→";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(8, 9, 20, 0.6);
    border-radius: 999px;
    color: #080914;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
}

.crh-useful-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(5, 0, 18, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.crh-useful-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crh-useful-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crh-useful-card__icon--text {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff5d3d;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.crh-useful-card__name {
    max-width: 150px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #080914;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.2;
}

.crh-useful-card__desc {
    max-width: 150px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #111426;
    line-height: 1.22;
}

/* INSIGHTS */
.crh-insights {
    position: relative;
    width: 100%;
    aspect-ratio: 1140 / 420;
    overflow: hidden;
    background: #1f1a18;
}

.crh-insights > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.crh-insights__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    pointer-events: none;
}

.crh-insights__title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-size: clamp(2rem, 3.4vw, 3.05rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.crh-insights__word {
    display: inline-block;
    min-width: 8.4ch;
    text-align: center;
}

.crh-insights__word::after {
    content: '';
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin-left: 0.06em;
    background: currentColor;
    transform: translateY(0.08em);
    animation: crh-insights-caret 0.86s steps(1) infinite;
}

@keyframes crh-insights-caret {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .crh-tools__layout { grid-template-columns: 240px 1fr; }
    .crh-tools__grid   { grid-template-columns: repeat(2, 1fr); }
    .crh-useful__grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
    .crh-hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .crh-hero {
        background-size: cover;
        background-position: center;
    }
    .crh-hero__widget {
        width: 100%;
        max-width: 478px;
        margin: 0 auto;
    }
    .crh-hero__widget-frame { height: 480px; }
    .crh-tools__layout { grid-template-columns: 1fr; }
    .crh-featured { min-height: auto; }
    .crh-featured__img { height: 120px; }
    .crh-tools__grid { grid-template-columns: repeat(3, 1fr); }
    .crh-blog__grid  { grid-template-columns: repeat(2, 1fr); }
    .crh-useful__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .crh-hero { padding: 52px 0 60px; }
    .crh-tools { padding: 36px 0 0; }
    .crh-tools__grid { grid-template-columns: repeat(2, 1fr); }
    .crh-blog__grid  { grid-template-columns: 1fr; }
    .crh-useful__grid { grid-template-columns: repeat(2, 1fr); padding: 14px; gap: 10px; }
    .crh-useful-card { min-height: 128px; padding: 14px 12px; }
    .crh-useful-card__name,
    .crh-useful-card__desc { max-width: 120px; }
    .crh-insights { aspect-ratio: 16 / 9.4; }
    .crh-hero__search { max-width: 100%; }
    .crh-cta__btn { font-size: 1.05rem; padding: 18px 20px; }
    .crh-product__inner { flex-direction: column; align-items: center; gap: 0; }
    .crh-product__img { max-height: 160px; }
    .crh-product__brand { padding: 16px 0; }
    .crh-product__brand-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .crh-tool-card,
    .crh-blog-card,
    .crh-useful-card,
    .crh-featured__btn {
        transition: none;
    }
}

/* ── HERO ACTIONS (Bater Ponto + Área do Cliente) ──────────── */
.crh-hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.crh-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    border: 2px solid transparent;
}

.crh-hero__btn--primary {
    background: #24cdbc;
    color: #0b1140;
    border-color: #24cdbc;
}

.crh-hero__btn--primary:hover {
    background: #1ab5a6;
    border-color: #1ab5a6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(36,205,188,.35);
}

.crh-hero__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35);
    font-family: inherit;
}

.crh-hero__btn--secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
}

/* ── BACKDROP POPUP ÁREA DO CLIENTE ───────────────────────── */
.sc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 64, .65);
    z-index: 9999;
    animation: sc-fade-in .2s ease;
}
.sc-backdrop.is-open { display: block; }
@keyframes sc-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── MODAL ÁREA DO CLIENTE ─────────────────────────────────── */
.sc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sc-modal.is-open {
    display: flex;
}

@keyframes sc-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 30, .82);
    opacity: 0;
    transition: opacity .28s ease;
}

.sc-modal.is-open    .sc-modal__backdrop { opacity: 1; }
.sc-modal.is-closing .sc-modal__backdrop { opacity: 0; transition: opacity .22s ease; }

.sc-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 90vh;
    padding: 0;
    box-shadow: 0 32px 80px rgba(0,0,0,.38);
    transform: translateY(44px) scale(.93);
    opacity: 0;
    transition: transform .44s cubic-bezier(.34, 1.4, .64, 1), opacity .28s ease;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 16px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.sc-modal.is-open .sc-modal__box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sc-modal.is-closing .sc-modal__box {
    transform: translateY(20px) scale(.96);
    opacity: 0;
    transition: transform .2s ease-in, opacity .18s ease-in;
}

/* Entrada escalonada dos elementos internos */
.sc-modal.is-open .sc-modal__brand-logo {
    animation: sc-fade-up .36s ease both;
    animation-delay: .2s;
}

.sc-modal.is-open .sc-modal__subtitle {
    animation: sc-fade-up .36s ease both;
    animation-delay: .27s;
}

.sc-modal.is-open .sc-modal__iframe-clip {
    animation: sc-fade-up .36s ease both;
    animation-delay: .32s;
}

.sc-modal__iframe {
    position: absolute;
    top: -185px;
    left: -28%;
    width: 156%;
    height: 680px;
    border: none;
    display: none;
}

.sc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.sc-modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.sc-modal__header {
    position: relative;
    background: linear-gradient(145deg, #0d1f6e 0%, #1a2f94 55%, #1e3bb8 100%);
    padding: 28px 56px 22px 28px;
    text-align: center;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sc-modal__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #24cdbc 0%, #1ab5a6 100%);
    opacity: 0.75;
}

.sc-modal__brand-logo {
    display: block;
    max-width: 160px;
    height: auto;
}

.sc-modal__subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    letter-spacing: .03em;
}

.sc-modal__iframe-clip {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: #f3f3f3;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* Máscaras que cobrem artefatos de borda do iframe */
.sc-modal__iframe-clip::before,
.sc-modal__iframe-clip::after {
    content: '';
    position: absolute;
    z-index: 3;
    pointer-events: none;
    background: #fff;
}

/* laterais */
.sc-modal__iframe-clip::before { top: 0; bottom: 0; left: 0; width: 12px; }
.sc-modal__iframe-clip::after  { top: 0; bottom: 0; right: 0; width: 12px; }

/* topo e rodapé — cobre faixa cinza do Secullum e ícones dos cantos */
.sc-modal__iframe-top-mask,
.sc-modal__iframe-bottom-mask {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    background: #f3f3f3;
    z-index: 3;
    pointer-events: none;
}

.sc-modal__iframe-top-mask    { top: 0; }
.sc-modal__iframe-bottom-mask { bottom: 0; }


@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

.sc-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(145deg, #1a2f94 0%, #1e3bb8 100%);
    border-radius: 16px;
    z-index: 4;
}

.sc-modal__loading-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.sc-modal__spinner {
    animation: sc-spin 0.8s linear infinite;
}

.sc-modal__success {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(145deg, #1a2f94 0%, #1e3bb8 100%);
    border-radius: 16px;
    z-index: 5;
}

.sc-modal__success-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.sc-modal__success-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 480px) {
    .sc-modal { padding: 0; align-items: flex-end; }
    .sc-modal__box {
        max-width: 100%;
        width: 100%;
        height: 92dvh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
    }
    .crh-hero__actions { gap: 10px; }
    .crh-hero__btn { padding: 11px 16px; font-size: 0.78rem; }
}
