/**
 * Creative Choose Us — creativechooseus.css
 *
 * Mobile-first responsive design
 * Breakpoints: 768px (tablet), 1024px (desktop)
 * No inline styles — all colors via CSS custom properties
 * Color palette: soft blue (#4A90D9), sky blue (#5BB8E8), sea green (#3CB8A0)
 *
 * Heading hierarchy: H2 (section) → H3 (sub-title) → H4 (cards)
 *
 * @package Astra Child – Remote Hive
 */

/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════ */
.rh-creativechooseus {
    --rh-ccu-accent1: #5BB8E8;
    --rh-ccu-accent2: #3CB8A0;
    --rh-ccu-accent3: #4A90D9;
    --rh-ccu-accent4: #6CADA0;
    --rh-ccu-icon-bg: #eef7fc;
    --rh-ccu-icon-stroke1: var(--rh-ccu-accent1);
    --rh-ccu-icon-stroke2: var(--rh-ccu-accent2);
}

/* ═══════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════ */
.rh-creativechooseus {
    position: relative;
    width: 100%;
    padding: 50px 0 70px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    box-sizing: border-box;
    contain: content;
    transform: translateZ(0);
}
.rh-creativechooseus *,
.rh-creativechooseus *::before,
.rh-creativechooseus *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════
   TOP BLOCK — heading + stat boxes
   ═══════════════════════════════════════ */
.rh-creativechooseus-top {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── H2 heading (section title) ── */
.rh-creativechooseus-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.625rem, 8vw, 2.6rem);
    font-weight: 800;
    color: #0a0a0f;
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: rh-ccu-rise 0.6s ease 0.05s forwards;
}
.rh-creativechooseus-heading__accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--rh-ccu-accent1), var(--rh-ccu-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Squiggle underline */
.rh-creativechooseus-squiggle {
    position: absolute;
    bottom: -8px;
    left: -8%;
    width: 116%;
    height: 14px;
    display: block;
    pointer-events: none;
}
.rh-creativechooseus-squiggle svg {
    width: 100%;
    height: 100%;
    display: block;
}
.rh-creativechooseus-squiggle svg path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: rh-ccu-draw 1.2s ease 0.6s forwards;
}
.rh-creativechooseus-squiggle svg path:nth-child(2) {
    animation-delay: 0.9s;
}

/* ═══════════════════════════════════════
   STAT BOXES
   ═══════════════════════════════════════ */
.rh-creativechooseus-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
}
.rh-creativechooseus-stat {
    position: relative;
    border-radius: 12px;
    background: #f5f9fc;
    border: 1px solid #e0edf5;
    padding: 18px 12px;
    text-align: center;
    cursor: default;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: rh-ccu-rise 0.55s ease forwards;
}
.rh-creativechooseus-stat:nth-child(1) { animation-delay: 0.15s; }
.rh-creativechooseus-stat:nth-child(2) { animation-delay: 0.25s; }
.rh-creativechooseus-stat:nth-child(3) { animation-delay: 0.35s; }
.rh-creativechooseus-stat:nth-child(4) { animation-delay: 0.45s; }

/* Color overlay — activated on mobile by default, desktop on hover */
.rh-creativechooseus-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--rh-ccu-stat-bg, #4A90D9);
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.rh-creativechooseus-stat__inner {
    position: relative;
    z-index: 1;
}
.rh-creativechooseus-stat__number {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: #fff;
    line-height: 1;
    transition: color 0.4s ease, -webkit-text-fill-color 0.4s ease;
}
.rh-creativechooseus-stat__suffix {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    -webkit-text-fill-color: #fff;
    transition: color 0.4s ease, -webkit-text-fill-color 0.4s ease;
}
.rh-creativechooseus-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    -webkit-text-fill-color: #fff;
    line-height: 1.4;
    transition: color 0.4s ease, -webkit-text-fill-color 0.4s ease;
}

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.rh-creativechooseus-divider {
    height: 55px;
}

/* ═══════════════════════════════════════
   MAIN — copy + cards
   ═══════════════════════════════════════ */
.rh-creativechooseus-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

/* ── Copy ── */
.rh-creativechooseus-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* H3 title — bold italic */
.rh-creativechooseus-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.375rem, 7vw, 2.2rem);
    font-weight: 800;
    font-style: italic;
    color: #0a0a0f;
    line-height: 1.22;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(24px);
    animation: rh-ccu-rise 0.6s ease 0.2s forwards;
    text-align: center;
    width: 100%;
}
.rh-creativechooseus-title__accent {
    display: block;
    color: var(--rh-ccu-accent2);
    -webkit-text-fill-color: var(--rh-ccu-accent2);
}

/* Description */
.rh-creativechooseus-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 38px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    animation: rh-ccu-rise 0.6s ease 0.3s forwards;
}

/* CTA button */
.rh-creativechooseus-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--rh-ccu-accent1) 0%, var(--rh-ccu-accent2) 100%);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(91, 184, 232, 0.25);
    opacity: 0;
    transform: translateY(24px);
    animation: rh-ccu-rise 0.6s ease 0.4s forwards;
    align-self: center;
}
.rh-creativechooseus-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 184, 232, 0.35);
    color: #fff;
    text-decoration: none;
    filter: brightness(1.05);
}
.rh-creativechooseus-cta svg {
    transition: transform 0.3s ease;
}
.rh-creativechooseus-cta:hover svg {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.rh-creativechooseus-cards-wrap {
    position: relative;
    height: 330px;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rh-creativechooseus-cardswap {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 260px;
    margin: 0 auto;
    transform: none;
    /* Mobile: NO 3D — flat transform-style */
    perspective: none;
    transform-style: flat;
    contain: layout style;
}
.rh-creativechooseus-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 20px);
    max-width: 265px;
    height: 235px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0edf5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.35s ease;
    /* Mobile: 2D only */
    transform-style: flat;
    will-change: auto;
    backface-visibility: visible;
}
.rh-creativechooseus-card.is-active {
    box-shadow: 0 12px 40px rgba(91, 184, 232, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Card header */
.rh-creativechooseus-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #f5f9fc;
    border-bottom: 1px solid #e4eef5;
}
.rh-creativechooseus-dots {
    display: flex;
    gap: 7px;
}
.rh-creativechooseus-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.rh-creativechooseus-dots span:nth-child(1) { background: #ff5f57; }
.rh-creativechooseus-dots span:nth-child(2) { background: #febc2e; }
.rh-creativechooseus-dots span:nth-child(3) { background: #28c840; }
.rh-creativechooseus-card__tab {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
}

/* Card body */
.rh-creativechooseus-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: calc(100% - 48px);
    justify-content: center;
}
.rh-creativechooseus-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rh-ccu-icon-bg);
    border-radius: 10px;
    margin-bottom: 12px;
    color: var(--rh-ccu-accent1);
}
.rh-creativechooseus-card__icon svg {
    width: 20px;
    height: 20px;
}

/* H4 card title */
.rh-creativechooseus-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1875rem; /* 19px — Mobile Small type scale */
    font-weight: 600;
    color: #0a0a0f;
    margin-bottom: 8px;
    line-height: 1.3;
}
.rh-creativechooseus-card__desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.55;
    max-width: 230px;
}

/* ═══════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════ */
@keyframes rh-ccu-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes rh-ccu-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ═══════════════════════════════════════
   MOBILE: Reorder — copy+cards first, stats below
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .rh-creativechooseus {
        display: flex;
        flex-direction: column;
    }
    .rh-creativechooseus-main {
        order: 1;
    }
    .rh-creativechooseus-divider {
        order: 2;
    }
    .rh-creativechooseus-top {
        order: 3;
    }
}

/* ═══════════════════════════════════════
   VERY SMALL ≤ 375
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .rh-creativechooseus-cardswap {
        max-width: 255px;
        height: 245px;
    }
    .rh-creativechooseus-card {
        max-width: 240px;
        height: 220px;
    }
    .rh-creativechooseus-card__title {
        font-size: 1.1875rem; /* 19px — Mobile Small */
    }
    .rh-creativechooseus-card__desc {
        font-size: 0.8rem;
        max-width: 210px;
    }
}

/* ═══════════════════════════════════════
   MOBILE SMALL ≤ 480
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
    .rh-creativechooseus-heading {
        font-size: clamp(1.625rem, 8vw, 1.875rem);
    }
    .rh-creativechooseus-title {
        font-size: clamp(1.375rem, 7vw, 1.5rem);
    }
    .rh-creativechooseus-desc {
        font-size: 0.9375rem;
    }
    .rh-creativechooseus-card__title {
        font-size: 1.1875rem; /* 19px — Mobile Small */
    }
}

/* ═══════════════════════════════════════
   MOBILE LARGE ≥ 481
   ═══════════════════════════════════════ */
@media (min-width: 481px) {
    .rh-creativechooseus-card__title {
        font-size: 1.3125rem; /* 21px — Mobile Large type scale */
    }
}

/* ═══════════════════════════════════════
   TABLET ≥ 768
   ═══════════════════════════════════════ */
@media (min-width: 768px) {
    .rh-creativechooseus {
        padding: 60px 0 80px;
    }
    .rh-creativechooseus-top {
        padding: 0 20px;
    }
    .rh-creativechooseus-heading {
        font-size: clamp(2.25rem, 4vw, 3.2rem);
        margin-bottom: 50px;
    }
    .rh-creativechooseus-squiggle {
        bottom: -10px;
        height: 18px;
    }
    .rh-creativechooseus-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .rh-creativechooseus-stat {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .rh-creativechooseus-stat__number {
        font-size: 2.2rem;
    }
    .rh-creativechooseus-stat__label {
        font-size: 0.85rem;
    }
    .rh-creativechooseus-divider {
        height: 70px;
    }
    .rh-creativechooseus-main {
        padding: 0 20px;
        gap: 50px;
    }
    .rh-creativechooseus-title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
    }
    .rh-creativechooseus-desc {
        max-width: 560px;
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .rh-creativechooseus-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    .rh-creativechooseus-cards-wrap {
        height: 360px;
    }
    .rh-creativechooseus-cardswap {
        max-width: 320px;
        height: 290px;
    }
    .rh-creativechooseus-card {
        max-width: 300px;
        height: 260px;
    }
    .rh-creativechooseus-card__body {
        padding: 20px 22px;
    }
    .rh-creativechooseus-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }
    .rh-creativechooseus-card__icon svg {
        width: 22px;
        height: 22px;
    }
    .rh-creativechooseus-card__title {
        font-size: 1.5rem; /* 24px — Tablet type scale */
        margin-bottom: 10px;
    }
    .rh-creativechooseus-card__desc {
        font-size: 0.86rem;
        line-height: 1.6;
        max-width: 260px;
    }
    .rh-creativechooseus-card__head {
        padding: 13px 18px;
    }
    .rh-creativechooseus-dots span {
        width: 11px;
        height: 11px;
    }
    .rh-creativechooseus-card__tab {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════
   DESKTOP ≥ 1025
   ═══════════════════════════════════════ */
@media (min-width: 1025px) {
    .rh-creativechooseus {
        padding: 80px 0 100px;
        display: block; /* Reset flex for desktop order */
    }
    .rh-creativechooseus-top {
        padding: 0 40px;
        order: unset;
    }
    .rh-creativechooseus-divider {
        height: 80px;
        order: unset;
    }
    .rh-creativechooseus-main {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 0 40px;
        text-align: left;
        order: unset;
    }
    .rh-creativechooseus-copy {
        align-items: flex-start;
        text-align: left;
    }
    .rh-creativechooseus-title {
        text-align: left;
        font-size: clamp(1.9rem, 3.5vw, 2.85rem);
    }
    .rh-creativechooseus-desc {
        max-width: 520px;
        font-size: 1.08rem;
        line-height: 1.85;
        text-align: left;
        margin-left: 0;
    }

    /* Stats: 4 columns on desktop */
    .rh-creativechooseus-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .rh-creativechooseus-stat {
        padding: 32px 28px;
        border-color: #e0edf5;
    }
    /* Desktop: overlay hidden by default, show on hover */
    .rh-creativechooseus-stat::before {
        opacity: 0;
    }
    .rh-creativechooseus-stat__number {
        font-size: 2.8rem;
        color: #0a0a0f;
        -webkit-text-fill-color: #0a0a0f;
    }
    .rh-creativechooseus-stat__suffix {
        font-size: 1.6rem;
        color: #0a0a0f;
        -webkit-text-fill-color: #0a0a0f;
    }
    .rh-creativechooseus-stat__label {
        margin-top: 10px;
        font-size: 0.95rem;
        color: #555;
        -webkit-text-fill-color: #555;
    }

    /* Cards: full 3D on desktop */
    .rh-creativechooseus-cards-wrap {
        height: 500px;
    }
    .rh-creativechooseus-cardswap {
        width: 420px;
        max-width: 420px;
        height: 400px;
        perspective: 1000px;
        transform-style: preserve-3d;
    }
    .rh-creativechooseus-card {
        width: 380px;
        max-width: 380px;
        height: 320px;
        border-radius: 14px;
        transform-style: preserve-3d;
        will-change: transform;
        backface-visibility: hidden;
    }
    .rh-creativechooseus-card__body {
        padding: 28px 30px;
    }
    .rh-creativechooseus-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        margin-bottom: 18px;
    }
    .rh-creativechooseus-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .rh-creativechooseus-card__title {
        font-size: 1.625rem; /* 26px — Laptop type scale */
        margin-bottom: 14px;
    }
    .rh-creativechooseus-card__desc {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 310px;
    }

    .rh-creativechooseus-cta {
        padding: 15px 32px;
        font-size: 0.95rem;
        border-radius: 12px;
        align-self: flex-start;
    }
}

/* ═══════════════════════════════════════
   DESKTOP ≥ 1280 (fine-tune to type scale)
   ═══════════════════════════════════════ */
@media (min-width: 1280px) {
    .rh-creativechooseus-heading {
        font-size: 3rem; /* 48px H2 */
    }
    .rh-creativechooseus-title {
        font-size: 2.25rem; /* 36px H3 */
    }
    .rh-creativechooseus-card__title {
        font-size: 1.75rem; /* 28px H4 */
    }
    .rh-creativechooseus-desc {
        font-size: 1.125rem; /* 18px body */
    }
}

/* ═══════════════════════════════════════
   DESKTOP HOVER STATES (pointer devices only)
   ═══════════════════════════════════════ */
@media (hover: hover) and (min-width: 1025px) {
    .rh-creativechooseus-stat:hover {
        border-color: transparent;
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(91, 184, 232, 0.15);
    }
    .rh-creativechooseus-stat:hover::before {
        opacity: 1;
    }
    .rh-creativechooseus-stat:hover .rh-creativechooseus-stat__number,
    .rh-creativechooseus-stat:hover .rh-creativechooseus-stat__suffix,
    .rh-creativechooseus-stat:hover .rh-creativechooseus-stat__label {
        color: #fff;
        -webkit-text-fill-color: #fff;
    }
}