/* ==========================================================================
   Webrakéta Hero – scoped CSS
   Minden méret a Lovable eredeti (Tailwind alapú) értékekből.
   Mobil base: html font-size 17.5px → 1rem = 17.5px
   Desktop (≥768px): html font-size 18px → 1rem = 18px
   ========================================================================== */

/* ---------- Section (full-bleed, override Elementor container) ---------- */
.wr-hero {
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background-color: #FAFAF7 !important;
    padding: 64px 20px !important;
    /* Break out of Elementor / theme container to full viewport width */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: 0 !important;
    right: 0 !important;
}
.wr-hero *, .wr-hero *::before, .wr-hero *::after { box-sizing: border-box; }

@media (min-width: 768px) {
    .wr-hero { padding: 96px 24px !important; }
}

/* Ha az Elementor szülő szekció / oszlop korlátozza a szélességet, ezt is
   semlegesítjük a widget körül */
.elementor-widget-webraketa_hero,
.elementor-widget-webraketa_hero > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Container ---------- */
.wr-hero-container {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 1024px) {
    .wr-hero-container {
        grid-template-columns: 7fr 5fr;
        gap: 48px;
    }
}

/* Mobil sorrend */
.wr-hero-text       { order: 1; }
.wr-hero-image-wrap { order: 2; }
.wr-hero--image-first-mobile .wr-hero-text       { order: 2; }
.wr-hero--image-first-mobile .wr-hero-image-wrap { order: 1; }
@media (min-width: 1024px) {
    .wr-hero-text, .wr-hero-image-wrap { order: initial; }
}

.wr-hero--hide-image-mobile .wr-hero-image-wrap { display: none; }
@media (min-width: 1024px) {
    .wr-hero--hide-image-mobile .wr-hero-image-wrap { display: block; }
}

/* ---------- Text column ---------- */
.wr-hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---------- Badge ---------- */
.wr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(14, 91, 161, 0.25);
    background-color: rgba(14, 91, 161, 0.08);
    color: #0E5BA1 !important;
    padding: 6px 16px;
    border-radius: 9999px;
    font-family: "Open Sans", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    width: fit-content;
    margin: 0;
}
.wr-hero-badge-dot {
    width: 6px; height: 6px; border-radius: 9999px;
    background-color: #0E5BA1;
}

/* ---------- Title ---------- */
/* Mobile (<768px): 4xl = 2.25rem * 17.5 = 39.375px; line-height 1.05 */
.wr-hero-title {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    color: #015092 !important;
    font-size: 39.375px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
    text-wrap: balance;
}
/* Tablet (≥768px): 5xl = 3rem * 18 = 54px */
@media (min-width: 768px) {
    .wr-hero-title {
        font-size: 54px !important;
        line-height: 1.05 !important;
    }
}
/* Desktop (≥1024px): 6xl = 3.75rem * 18 = 67.5px */
@media (min-width: 1024px) {
    .wr-hero-title {
        font-size: 67.5px !important;
        line-height: 1.05 !important;
    }
}
.wr-hero-title .wr-hero-title-accent {
    color: #0E5BA1 !important;
    font: inherit !important;
}

/* ---------- Description ---------- */
/* Mobile: text-lg = 1.125rem * 17.5 = 19.6875px; leading-relaxed = 1.625 */
.wr-hero-desc {
    font-family: "Open Sans", sans-serif !important;
    font-weight: 400 !important;
    font-size: 19.6875px !important;
    line-height: 1.625 !important;
    color: #5b6470 !important;
    margin: 0 !important;
    max-width: 44ch;
}
/* Tablet+ : text-xl = 1.25rem * 18 = 22.5px */
@media (min-width: 768px) {
    .wr-hero-desc {
        font-size: 22.5px !important;
        line-height: 1.625 !important;
    }
}

/* ---------- Buttons ---------- */
.wr-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}
.wr-hero-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 9999px !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    cursor: pointer;
    white-space: nowrap;
    width: auto !important;
    box-shadow: none !important;
}
.wr-hero-btn--primary {
    background-color: #0E5BA1 !important;
    color: #ffffff !important;
    border-color: #0E5BA1 !important;
}
.wr-hero-btn--primary:hover {
    background-color: #0A4A85 !important;
    border-color: #0A4A85 !important;
    color: #ffffff !important;
}
.wr-hero-btn--secondary {
    background-color: #FAFAF7 !important;
    color: #1a1a2e !important;
    border: 1px solid rgba(26, 26, 46, 0.1) !important;
}
.wr-hero-btn--secondary:hover {
    background-color: #EFEFEA !important;
}
.wr-hero-btn-icon { flex-shrink: 0; width: 16px; height: 16px; }

@media (max-width: 767px) {
    .wr-hero--btn-fullwidth-mobile .wr-hero-buttons { flex-direction: column; align-items: stretch; }
    .wr-hero--btn-fullwidth-mobile .wr-hero-btn     { width: 100%; }
}

/* ---------- Image ---------- */
.wr-hero-image-wrap {
    position: relative;
    width: 100%;
}
.wr-hero-image-frame {
    position: absolute;
    inset: -24px;
    border-radius: 32px;
    border: 1px solid rgba(14, 91, 161, 0.15);
    pointer-events: none;
}
.wr-hero-image-blob {
    position: absolute;
    bottom: -40px; left: -40px;
    width: 128px; height: 128px;
    border-radius: 9999px;
    background-color: rgba(14, 91, 161, 0.10);
    pointer-events: none;
}
.wr-hero-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
    outline: 1px solid rgba(26, 26, 46, 0.05);
    outline-offset: -1px;
}

/* ---------- Decoration ---------- */
.wr-hero-deco {
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
}
.wr-hero-deco--blur {
    top: -128px; right: -128px;
    width: 480px; height: 480px;
    background-color: rgba(14, 91, 161, 0.05);
    filter: blur(40px);
}
.wr-hero-deco--ring1 {
    top: -40px; right: 40px;
    width: 288px; height: 288px;
    border: 1px solid rgba(14, 91, 161, 0.15);
}
.wr-hero-deco--ring2 {
    top: 80px; right: 128px;
    width: 192px; height: 192px;
    border: 1px solid rgba(14, 91, 161, 0.10);
}
.wr-hero-deco--dashed {
    bottom: -80px; left: -80px;
    width: 320px; height: 320px;
    border: 2px dashed rgba(14, 91, 161, 0.10);
}
.wr-hero--hide-deco-mobile .wr-hero-deco { display: none; }
@media (min-width: 768px) {
    .wr-hero--hide-deco-mobile .wr-hero-deco { display: block; }
}
