/*
4291	NEW Hero CSS Homepage ro
admin2	Site Wide Header	30 September 2025 at 06:52		css	10
*/

/* ===== Cucurigoo – Home FINAL (NO DUPLICATES) ===== */
:root {
    --text: #E9ECF4;
    --dim: #A8B0C2;
    --border: #23283B;
    --cta: #FF6B3D;
    --gold: #D4AF37;
    --gold2: #F6D773;
}

/* ========== HERO ========== */
.cgr-hero {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cgr-hero .elementor-widget-heading.cgr-hero-title .elementor-heading-title {
    color: var(--text) !important;
    font-weight: 900 !important;
    font-size: 44px !important;
    line-height: 1.08 !important;
    margin: 0 0 12px !important;
    letter-spacing: 0.1px !important;
    max-width: 600px;
}

.cgr-hero .elementor-widget-heading.cgr-hero-title .elementor-heading-title .line {
    display: block;
    white-space: nowrap;
}

.cgr-hero .cgr-hero-lead {
    color: var(--dim) !important;
    margin: 0 !important;
}

/* Hero CTA Buttons */
.cgr-hero .elementor-element.cgr-btn .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 12px 18px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text) !important;
    font-weight: 800 !important;
    letter-spacing: 0.1px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cgr-hero .elementor-element.cgr-btn--primary .elementor-button {
    background: linear-gradient(180deg, var(--cta) 0%, #FF7A50 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(255, 107, 61, 0.22) !important;
}

.cgr-hero .elementor-element.cgr-btn--primary .elementor-button:hover {
    transform: translateY(-2px);
}

.cgr-hero .elementor-element.cgr-btn--ghost .elementor-button {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text) !important;
    border: 1px solid #2A3150 !important;
}

.cgr-hero .elementor-element.cgr-btn--ghost .elementor-button:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
}

/* Hero Alignment */
@media (min-width: 1200px) {
    .cgr-hero .elementor-container,
    .cgr-hero .e-con-inner {
        align-items: center !important;
    }

    .cgr-hero .elementor-container > .elementor-column:first-child > .elementor-widget-wrap {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 14px !important;
    }

    .cgr-hero .e-con-inner > .e-con:first-child {
        justify-content: center !important;
    }

    .cgr-hero .cgr-cta-row {
        margin-top: 10px !important;
    }

    .cgr-hero .elementor-widget-image {
        align-self: center !important;
    }

    .cgr-hero .elementor-widget-image img {
        max-height: 320px !important;
        height: auto !important;
        width: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35)) !important;
    }
}

/* ========== HIW (Curios cum functioneaza?) ========== */

/* Wrapper */
.cgr-hiw {
    width: 100% !important;
    padding: 60px 0 !important;
}

.cgr-hiw .cgr-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
}

/* Titlu sectiune */
.cgr-hiw .cgr-hiw-title {
    color: var(--text) !important;
    font-weight: 900 !important;
    margin: 0 0 16px !important;
}

/* Grid carduri */
.cgr-hiw .cgr-steps {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    counter-reset: step !important;
    align-items: stretch !important;
    margin: 0 !important;
}

/* Card individual */
.cgr-hiw .cgr-step {
    position: relative !important;
    background: #181C27 !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 14px 14px 14px 52px !important;
    min-height: 96px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

/* Numerotare */
.cgr-hiw .cgr-step::before {
    content: counter(step) !important;
    counter-increment: step !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    color: #141414 !important;
    background: linear-gradient(180deg, var(--gold), var(--gold2)) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* Reset Elementor spacing */
.cgr-hiw .cgr-step .elementor-widget,
.cgr-hiw .cgr-step .elementor-widget-container,
.cgr-hiw .cgr-step .elementor-widget-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Titlu card */
.cgr-hiw .cgr-step :where(h2, h3, h4, .elementor-heading-title) {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #E9ECF4 !important;
    text-decoration: none !important;
}

/* Descriere card */
.cgr-hiw .cgr-step :where(p, .elementor-widget-text-editor) {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    color: var(--dim) !important;
}

/* Hover */
.cgr-hiw .cgr-step:hover {
    border-color: #2A3150 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive */
@media (max-width: 1199px) {
    .cgr-hiw .cgr-steps {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .cgr-hiw .cgr-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cgr-hiw .cgr-wrap {
        padding: 0 16px !important;
    }
}

@media (max-width: 480px) {
    .cgr-hiw .cgr-steps {
        grid-template-columns: 1fr !important;
    }
}

/* Safety: ascunde orice odr- vechi */
.odr-hero,
.odr-how {
    display: none !important;
}

/* ===== HERO + HIW: Compact pentru a încăpea în viewport ===== */

/* Hero - redus padding sus/jos */
.cgr-hero {
    padding: 40px 0 30px 0 !important;
}

/* Hero inner container - min-height mai mic */
.cgr-hero .cgr-hero__inner,
.cgr-hero > .elementor-container {
    min-height: 50vh !important;
}

/* HIW - padding mult mai mic (mai puțin sus, mult mai puțin jos) */
.cgr-hiw {
    padding: 30px 0 20px 0 !important;
}

/* Titlu HIW - spacing mai mic */
.cgr-hiw .cgr-hiw-title {
    margin: 0 0 12px !important;
}

/* Grid HIW - gap mai mic între carduri */
.cgr-hiw .cgr-steps {
    gap: 10px !important;
}

/* Carduri HIW - mai compacte vertical */
.cgr-hiw .cgr-step {
    padding: 12px 12px 12px 48px !important;
    min-height: 90px !important;
}

/* Responsive: pe desktop mediu */
@media (min-width: 1024px) and (max-width: 1366px) {
    .cgr-hero {
        padding: 35px 0 25px 0 !important;
    }

    .cgr-hero .cgr-hero__inner,
    .cgr-hero > .elementor-container {
        min-height: 48vh !important;
    }

    .cgr-hiw {
        padding: 25px 0 18px 0 !important;
    }
}

/* Responsive: pe desktop mare (>1366px) - puțin mai aerisit */
@media (min-width: 1367px) {
    .cgr-hero {
        padding: 45px 0 35px 0 !important;
    }

    .cgr-hero .cgr-hero__inner,
    .cgr-hero > .elementor-container {
        min-height: 52vh !important;
    }

    .cgr-hiw {
        padding: 35px 0 22px 0 !important;
    }
}

/* Ascunde butonul Revendică când user-ul e logat */
body.logged-in .js-open-auth-register {
    display: none !important;
}

/* =====================================================
   HERO DESKTOP FIX - Aliniere titlu + subtitlu
   ===================================================== */

/* DESKTOP 980px+ - Aliniere titlu + subtitlu mai la stânga */
@media (min-width: 980px) {
    body.home .cgr-hero h1,
    body.home .cgr-hero .elementor-heading-title,
    body.home .cgr-hero .cgr-hero-title .elementor-heading-title {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    body.home .cgr-hero .elementor-widget-text-editor,
    body.home .cgr-hero p,
    body.home .cgr-hero .cgr-hero-lead {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

/* =====================================================
   HOMEPAGE RESPONSIVE MOBILE
   ===================================================== */

@media (max-width: 767px) {

    /* ===== HERO SPACING + CENTRARE ===== */
    body.home .cgr-hero {
        margin-top: 0 !important;
        padding: 30px 0 20px 0 !important;
        text-align: center !important;
    }

    /* Container principal HERO - centrare */
    body.home .cgr-hero > .elementor-container,
    body.home .cgr-hero .cgr-hero__inner {
        gap: 16px !important;
        row-gap: 16px !important;
        text-align: center !important;
    }

    /* Titlu - centrat */
    body.home .cgr-hero h1,
    body.home .cgr-hero .elementor-heading-title,
    body.home .cgr-hero .cgr-hero-title .elementor-heading-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Subtitlu - centrat */
    body.home .cgr-hero .cgr-hero-lead,
    body.home .cgr-hero .elementor-widget-text-editor p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Widgets DOAR în Hero copy */
    body.home .cgr-hero .cgr-hero__copy .elementor-widget-heading,
    body.home .cgr-hero .cgr-hero__copy .elementor-widget-text-editor {
        margin-bottom: 8px !important;
    }

    body.home .cgr-hero .cgr-hero__copy .elementor-button-wrapper,
    body.home .cgr-hero .cgr-hero__copy .cgr-cta-row {
        margin-bottom: 8px !important;
    }

    /* ===== HERO IMAGE ===== */
    body.home .cgr-hero .elementor-background-overlay,
    body.home .cgr-hero .elementor-column-wrap,
    body.home .cgr-hero .elementor-widget-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.home .cgr-hero img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* ===== HERO BUTTON ===== */
    body.home .cgr-hero .elementor-button,
    body.home .cgr-hero .btn,
    body.home .cgr-hero a.btn {
        display: block !important;
        margin: 0 auto !important;
        width: auto !important;
        max-width: 240px !important;
        text-align: center !important;
        padding: 12px 24px !important;
    }

    body.home .cgr-hero .elementor-button-wrapper {
        text-align: center !important;
        display: block !important;
    }

    /* ===== TITLURI CATEGORII - Aliniere uniformă ===== */
    body.home .elementor-heading-title,
    body.home h2.elementor-heading-title,
    body.home .elementor-widget-heading {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    /* Container uniform pentru toate secțiunile */
    body.home .elementor-section > .elementor-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Mobil - păstrăm spacing rezonabil */
    body.home .cgr-hero {
        padding: 30px 0 20px 0 !important;
    }

    body.home .cgr-hiw {
        padding: 25px 0 20px 0 !important;
    }
}