/* RO e-Factura page (e-factura.php). Builds on css/product-page.css (eyebrow, section headers, video, CTA, disc). */
.site-modern.site-efactura { background: #fff; }
.site-modern.site-efactura picture { display: contents; }
.site-modern.site-efactura :is(.ef-solution, .ef-video, .ef-about, .ef-goals, .ef-advantages, .ef-steps) h2 {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.site-modern.site-efactura :is(.ef-solution, .ef-video, .ef-about, .ef-goals, .ef-advantages, .ef-steps) h2 span { color: var(--site-blue); }

/* ---------- 1. Hero: text + circle composition (photo circle, e-Factura logo circle, orbit, dots) ---------- */
.site-modern .ef-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(40% 55% at 80% 45%, rgba(33, 101, 232, .1), transparent 70%),
        radial-gradient(25% 35% at 62% 85%, rgba(59, 181, 74, .07), transparent 70%),
        #fff;
}
/* Soft fade at the bottom so the colour glows never end in a hard line; it matches the next section (white, or the light blue of .ef-solution) */
.site-modern .ef-hero::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 200px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--ef-hero-fade, #fff) 85%); pointer-events: none; }
.site-modern .ef-hero:has(+ .ef-solution) { --ef-hero-fade: #f5f8ff; }
.site-modern .ef-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 140px 24px 56px;
}
.site-modern .ef-hero__text { max-width: 470px; }
.site-modern .ef-hero h1 { margin: 0; color: var(--site-ink); font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.site-modern .ef-hero h1 span { color: var(--site-blue); }
.site-modern .ef-hero__lead { margin: 18px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 19px; line-height: 1.6; }
.site-modern .ef-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.site-modern .ef-hero__actions .site-button small { font-size: 13px; font-weight: 600; opacity: .85; }
.site-modern .ef-hero__actions .site-button svg { flex: 0 0 auto; }

.site-modern .ef-hero__visual { --size: min(100%, 420px); position: relative; display: grid; place-items: center; min-height: 460px; }
.site-modern .ef-orbit {
    position: absolute;
    width: calc(var(--size) + 70px);
    aspect-ratio: 1;
    border: 2px dashed rgba(33, 101, 232, .25);
    border-radius: 50%;
}
.site-modern .ef-circle { position: absolute; display: block; overflow: hidden; border-radius: 50%; }
.site-modern .ef-circle img { display: block; width: 100%; height: 100%; }
.site-modern .ef-circle--photo {
    position: relative;
    width: var(--size);
    aspect-ratio: 1;
    border: 8px solid #fff;
    box-shadow: 0 0 0 1px rgba(33, 101, 232, .12), 0 30px 60px rgba(23, 38, 61, .2);
}
.site-modern .ef-circle--photo img { object-fit: cover; object-position: 50% 72%; }
/* Logo circle: raised white disc overlapping the bottom-left edge of the photo */
.site-modern .ef-circle--logo {
    left: calc(50% - var(--size) / 2 - 20px);
    bottom: 6%;
    z-index: 2;
    width: 150px;
    height: 150px;
    padding: 26px;
    background:
        radial-gradient(ellipse 72% 42% at 50% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 55%, #e3ecfd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -8px 16px rgba(33, 101, 232, .12), 0 0 0 8px rgba(255, 255, 255, .7), 0 20px 40px rgba(23, 38, 61, .2);
}
.site-modern .ef-circle--logo img { object-fit: contain; }
.site-modern .ef-dot { position: absolute; border-radius: 50%; }
.site-modern .ef-dot--blue { width: 18px; height: 18px; top: 10%; right: 12%; background: var(--site-blue); box-shadow: 0 6px 14px rgba(33, 101, 232, .35); }
.site-modern .ef-dot--green { width: 12px; height: 12px; bottom: 12%; right: 16%; background: #3bb54a; }
.site-modern .ef-dot--orange { width: 10px; height: 10px; top: 20%; left: 12%; background: #f46a25; }

/* Floating cards */
.site-modern .ef-float {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e4ebf6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(23, 38, 61, .18);
    font-family: var(--site-font-body);
    line-height: 1.3;
}
.site-modern .ef-float strong { display: block; color: var(--site-ink); font-size: 15px; font-weight: 700; }
.site-modern .ef-float small { display: block; color: var(--site-muted); font-size: 12px; }
.site-modern .ef-float__check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e3f6e8; color: #2e9c3f; font-size: 16px; font-weight: 700; }
.site-modern .ef-float__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; }
.site-modern .ef-float--spv { right: 0; top: 16%; }

/* ---------- 2. Solution ---------- */
.site-modern .ef-solution {
    padding: 88px 24px;
    background:
        radial-gradient(45% 55% at 85% 20%, rgba(33, 101, 232, .08), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fd 100%);
}
.site-modern .ef-solution__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    max-width: 1160px;
    margin: 0 auto;
}
.site-modern .ef-lead { margin: 16px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 17px; line-height: 1.7; }
.site-modern .ef-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.site-modern .ef-benefits li {
    position: relative;
    padding-left: 32px;
    color: var(--site-ink);
    font-family: var(--site-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.site-modern .ef-benefits li::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dce7fc; }
.site-modern .ef-benefits li::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--site-blue);
    border-bottom: 2px solid var(--site-blue);
    transform: rotate(45deg);
}
.site-modern .ef-solution__visual { position: relative; }
.site-modern .ef-solution__visual img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(31, 59, 99, .16)); }
.site-modern .ef-float--import { left: -10px; bottom: 6%; }

/* ---------- 3. Video ---------- */
.site-modern .ef-video { padding: 88px 24px; }
.site-modern .ef-video__inner { max-width: 900px; margin: 0 auto; }

/* ---------- 4. About: editorial text + timeline ---------- */
.site-modern .ef-about { padding: 0 24px 88px; }
.site-modern .ef-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    max-width: 1160px;
    margin: 0 auto;
}
.site-modern .ef-about__text > p:not(.pp-eyebrow) { margin: 16px 0 0; color: #3f4d61; font-family: var(--site-font-body); font-size: 17px; line-height: 1.8; }
.site-modern .ef-timeline {
    padding: 28px 28px 10px;
    border: 1px solid #d6e3f7;
    border-radius: 24px;
    background: linear-gradient(160deg, #f6f9ff 0%, #eef3fd 100%);
}
.site-modern .ef-timeline ol { position: relative; margin: 0; padding: 0; list-style: none; }
.site-modern .ef-timeline ol::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 26px; width: 2px; background: linear-gradient(180deg, #2165e8, #c7dafb); }
.site-modern .ef-timeline li { position: relative; padding: 0 0 22px 32px; font-family: var(--site-font-body); }
.site-modern .ef-timeline li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--site-blue); box-shadow: 0 0 0 2px rgba(33, 101, 232, .25); }
.site-modern .ef-timeline__date { display: block; color: var(--site-blue); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-modern .ef-timeline strong { display: block; margin-top: 2px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 17px; }
.site-modern .ef-timeline li > span:last-child { display: block; margin-top: 4px; color: #4a5a70; font-size: 14px; line-height: 1.6; }

/* ---------- 5. Goals ---------- */
.site-modern .ef-goals {
    padding: 88px 24px;
    background:
        radial-gradient(45% 55% at 15% 10%, rgba(33, 101, 232, .08), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fd 100%);
}
.site-modern .ef-goals__inner { max-width: 1060px; margin: 0 auto; }
.site-modern .ef-goals__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-modern .ef-goal { padding: 32px 26px 28px; border: 1px solid #e4ebf6; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .07); text-align: center; }
.site-modern .ef-goal .pp-disc { margin-bottom: 18px; }
.site-modern .ef-goal h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; }
.site-modern .ef-goal p { margin: 8px 0 0; color: #4a5a70; font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }

/* ---------- 6. Important to know (dark) ---------- */
.site-modern .ef-important {
    padding: 88px 24px;
    background:
        radial-gradient(40% 60% at 10% 0%, rgba(44, 109, 229, .35), transparent 70%),
        radial-gradient(40% 60% at 100% 100%, rgba(244, 106, 37, .14), transparent 70%),
        #17263d;
    color: #fff;
}
.site-modern .ef-important__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .ef-important h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; }
.site-modern .ef-important h2 span { color: #8db6ff; }
.site-modern .ef-important__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.site-modern .ef-note { padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 100%); }
.site-modern .ef-note__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px rgba(0, 0, 0, .25);
    color: #fff;
}
.site-modern .ef-note h3 { margin: 0; color: #fff; font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; }
.site-modern .ef-note p { margin: 8px 0 0; color: rgba(255, 255, 255, .78); font-family: var(--site-font-body); font-size: 14px; line-height: 1.65; }

/* ---------- 7. Advantages ---------- */
.site-modern .ef-advantages { padding: 88px 24px; }
.site-modern .ef-advantages__inner { max-width: 1060px; margin: 0 auto; }
.site-modern .ef-advantages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-modern .ef-advantage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #d6e3f7;
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
    transition: transform .25s ease, box-shadow .25s ease;
}
.site-modern .ef-advantage__icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 72% 42% at 50% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 55%, #e3ecfd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -5px 10px rgba(33, 101, 232, .12), 0 8px 18px rgba(31, 59, 99, .12);
    color: var(--site-blue);
}
.site-modern .ef-advantage p { margin: 0; color: var(--site-ink); font-family: var(--site-font-body); font-size: 15px; font-weight: 600; line-height: 1.5; }
@media (hover: hover) {
    .site-modern .ef-advantage:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31, 59, 99, .1); }
}

/* ---------- 8. Steps ---------- */
.site-modern .ef-steps { padding: 0 24px 88px; }
.site-modern .ef-steps__inner { max-width: 1100px; margin: 0 auto; }
.site-modern .ef-steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-modern .ef-steps__list::before { content: ''; position: absolute; left: 14%; right: 14%; top: 32px; height: 2px; background: linear-gradient(90deg, #c7dafb, #2165e8, #c7dafb); }
.site-modern .ef-steps__list li { position: relative; text-align: center; font-family: var(--site-font-body); }
.site-modern .ef-steps__n {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: 0 0 0 2px rgba(33, 101, 232, .25), 0 10px 24px rgba(33, 101, 232, .3);
    color: #fff;
    font-family: var(--site-font-heading);
    font-size: 20px;
    font-weight: 700;
}
.site-modern .ef-steps__list h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; }
.site-modern .ef-steps__list p { margin: 10px auto 0; max-width: 320px; color: #4a5a70; font-size: 15px; line-height: 1.7; }
.site-modern .ef-steps__tag { display: inline-flex; margin-top: 12px; padding: 6px 12px; border: 1px solid #b7e2c5; border-radius: var(--site-pill); background: #edf9f1; color: #17663a; font-size: 13px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .site-modern .ef-important__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-modern .ef-advantages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    /* Hero: circles on top, text below */
    .site-modern .ef-hero__inner { grid-template-columns: minmax(0, 1fr); padding: 120px 24px 56px; text-align: center; }
    .site-modern .ef-hero__visual { order: -1; --size: min(80vw, 340px); min-height: 400px; }
    .site-modern .ef-hero__text { margin: 0 auto; }
    .site-modern .ef-hero__actions { justify-content: center; }
    .site-modern .ef-float--spv { right: 4%; top: 8%; }
    .site-modern .ef-solution__inner, .site-modern .ef-about__inner { grid-template-columns: minmax(0, 1fr); }
    .site-modern .ef-goals__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
    .site-modern .ef-steps__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    /* Mobile: numbers on the left, the line runs along them (never under the text) */
    .site-modern .ef-steps__list::before { display: none; }
    .site-modern .ef-steps__list li:not(:last-child)::after { content: ''; position: absolute; left: 31px; top: 64px; bottom: -32px; width: 2px; background: linear-gradient(180deg, #2165e8, #c7dafb); }
    .site-modern .ef-steps__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; text-align: left; }
    .site-modern .ef-steps__n { grid-row: span 3; margin: 0; }
    .site-modern .ef-steps__list h3 { margin-top: 16px; }
    .site-modern .ef-steps__list p { margin: 6px 0 0; max-width: none; }
    .site-modern .ef-steps__tag { justify-self: start; }
}
@media (max-width: 760px) {
    .site-modern .ef-hero__inner { padding-top: 100px; }
    .site-modern .ef-hero__visual { --size: min(72vw, 270px); min-height: 330px; }
    .site-modern .ef-circle--logo { width: 104px; height: 104px; padding: 18px; left: calc(50% - var(--size) / 2 - 12px); }
    .site-modern .ef-orbit { width: calc(var(--size) + 44px); }
    .site-modern .ef-hero h1 { font-size: clamp(36px, 11vw, 46px); }
    .site-modern .ef-hero__lead { font-size: 16px; }
    .site-modern .ef-hero__actions .site-button { flex: 1 1 auto; }
    .site-modern .ef-float--spv { top: 4%; right: 0; padding: 9px 12px; }
    .site-modern :is(.ef-solution, .ef-video, .ef-goals, .ef-important, .ef-advantages) { padding: 56px 16px; }
    .site-modern :is(.ef-about, .ef-steps) { padding: 0 16px 56px; }
    .site-modern.site-efactura :is(.ef-solution, .ef-video, .ef-about, .ef-goals, .ef-advantages, .ef-steps) h2,
    .site-modern .ef-important h2 { font-size: clamp(22px, 6.4vw, 28px); }
    .site-modern .ef-benefits { grid-template-columns: minmax(0, 1fr); }
    .site-modern .ef-about__text > p:not(.pp-eyebrow) { font-size: 16px; }
    .site-modern .ef-important__grid, .site-modern .ef-advantages__grid { grid-template-columns: minmax(0, 1fr); }
    .site-modern .ef-float--import { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .ef-advantage { transition: none; }
    .site-modern .ef-advantage:hover { transform: none; }
}
