/* Financing cards: native WordPress blocks, measured Capitalise geometry. */
.finergia-content--home .fg-home-hero:has(+ .fg-home-offer) { margin-bottom: 0; }
.fg-home-offer {
    --fg-offer-ink: #123b36;
    --fg-offer-muted: #526b63;
    --fg-offer-section-space: 96px;
    margin: 0 0 96px;
    padding-top: var(--fg-offer-section-space);
    color: var(--fg-offer-ink);
    font-family: 'Finergia Sans', Arial, Helvetica, sans-serif;
}
.finergia-content--home .fg-home-offer { scroll-margin-top: max(0px, calc(var(--fg-hero-header-space, 144px) + 24px - var(--fg-offer-section-space))); }
.fg-home-offer *, .fg-home-offer *::before, .fg-home-offer *::after { box-sizing: border-box; }
/* Classic-theme Group blocks add a presentational wrapper around their children. */
.fg-home-offer :is(.fg-offer-inner, .fg-offer-heading, .fg-offer-grid, .fg-offer-card) > .wp-block-group__inner-container { display: contents; }
.fg-home-offer .fg-offer-inner { display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 16px; }
.fg-home-offer .fg-offer-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 768px; margin: 0 auto; text-align: center; }
.fg-home-offer .fg-offer-kicker { margin: 0; color: var(--fg-offer-muted); font-size: 16px; font-weight: 600; line-height: 20px; text-transform: uppercase; }
.fg-home-offer .fg-offer-title { margin: 0; color: var(--fg-offer-ink); font-family: inherit; font-size: 32px; font-weight: 600; line-height: 38px; text-wrap: balance; }
.fg-home-offer .fg-offer-intro { max-width: 640px; margin: 0; color: var(--fg-offer-muted); font-size: 18px; line-height: 26px; text-wrap: pretty; }
.fg-home-offer .fg-offer-illustration { width: 100%; margin: 16px 0 0; }
.fg-home-offer .fg-offer-illustration img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fg-home-offer .fg-offer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; }
.fg-home-offer .fg-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 32px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.fg-home-offer .fg-offer-card-title { margin: 0; color: var(--fg-offer-ink); font-family: inherit; font-size: 18px; font-weight: 600; line-height: 24px; text-transform: uppercase; overflow-wrap: anywhere; }
.fg-home-offer .fg-offer-card-title::before { display: block; width: 72px; height: 72px; margin-bottom: 32px; border-radius: 50%; background: #edf4e4 var(--fg-offer-icon, url('images/offer-financing.svg')) center / 32px 32px no-repeat; content: ''; }
/* Service classes stay attached to the card when blocks are reordered. */
.fg-home-offer .fg-offer-card--secured { --fg-offer-icon: url('images/offer-icons/secured.svg'); }
.fg-home-offer .fg-offer-card--tax { --fg-offer-icon: url('images/offer-icons/tax.svg'); }
.fg-home-offer .fg-offer-card--terminal { --fg-offer-icon: url('images/offer-icons/terminal.svg'); }
.fg-home-offer .fg-offer-card--statement { --fg-offer-icon: url('images/offer-icons/statement.svg'); }
.fg-home-offer .fg-offer-card--turnover { --fg-offer-icon: url('images/offer-icons/turnover.svg'); }
.fg-home-offer .fg-offer-card--specialists { --fg-offer-icon: url('images/offer-icons/specialists.svg'); }
.fg-home-offer .fg-offer-card--business { --fg-offer-icon: url('images/offer-icons/business.svg'); }
.fg-home-offer .fg-offer-card--investment { --fg-offer-icon: url('images/offer-icons/investment.svg'); }
.fg-home-offer .fg-offer-card--company { --fg-offer-icon: url('images/offer-icons/company.svg'); }
.fg-home-offer .fg-offer-card--startup { --fg-offer-icon: url('images/offer-icons/startup.svg'); }
.fg-home-offer .fg-offer-card-title a { position: static; color: inherit; text-decoration: none; touch-action: manipulation; }
/* Stretch only on the frontend; text blocks must stay selectable in the editor. */
.finergia-content--home .fg-offer-card-title a::after { position: absolute; inset: 0; border-radius: 4px; content: ''; }
.finergia-content--home .fg-offer-card-title a:focus-visible { outline: none; }
.finergia-content--home .fg-offer-card-title a:focus-visible::after { outline: 3px solid var(--fg-offer-ink); outline-offset: 4px; }
.fg-home-offer .fg-offer-description { flex-grow: 1; margin: 16px 0 0; color: var(--fg-offer-muted); font-size: 16px; line-height: 24px; }
.fg-home-offer .fg-offer-more { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 32px 0 0; padding: 11px 0; color: #206141; font-size: 18px; font-weight: 600; line-height: 26px; transition: color 300ms cubic-bezier(.4, 0, .2, 1); }
.fg-home-offer .fg-offer-more::after { width: 24px; height: 24px; flex: none; background: currentColor; clip-path: polygon(12% 46%, 76% 46%, 48% 18%, 54% 12%, 92% 50%, 54% 88%, 48% 82%, 76% 54%, 12% 54%); content: ''; }
.fg-home-offer .fg-offer-card:is(:hover, :focus-within) .fg-offer-more { text-decoration: underline; }
/* Finergia enhancement: once on entering view; source cards have no entrance motion. */
.fg-home-offer .fg-offer-card.fg-offer-enter { animation: fg-offer-enter 640ms cubic-bezier(.22, 1, .36, 1) both; }
.fg-home-offer .fg-offer-card:focus-within { animation: none; }
@keyframes fg-offer-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
    .fg-home-offer { --fg-offer-section-space: 128px; margin-bottom: 128px; }
    .fg-home-offer .fg-offer-inner { padding-inline: 48px; }
    .fg-home-offer .fg-offer-title { font-size: 50px; line-height: 1.10016; }
    .fg-home-offer .fg-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fg-home-offer .fg-offer-card:nth-child(2n).fg-offer-enter { animation-delay: 70ms; }
}
@media (min-width: 1200px) {
    .fg-home-offer .fg-offer-inner { padding-inline: 112px; }
    .fg-home-offer .fg-offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fg-home-offer .fg-offer-card:nth-child(n).fg-offer-enter { animation-delay: 0ms; }
    .fg-home-offer .fg-offer-card:nth-child(3n + 2).fg-offer-enter { animation-delay: 70ms; }
    .fg-home-offer .fg-offer-card:nth-child(3n).fg-offer-enter { animation-delay: 140ms; }
}
@media (prefers-reduced-motion: reduce) {
    .fg-home-offer *, .fg-home-offer *::before, .fg-home-offer *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
    .fg-home-offer .fg-offer-card { border: 1px solid CanvasText; }
    .fg-home-offer .fg-offer-more::after { background: LinkText; }
}
@media print {
    .fg-home-offer { margin-bottom: 32px; padding-top: 32px; }
    .fg-home-offer .fg-offer-inner { padding-inline: 0; }
    .fg-home-offer .fg-offer-card { break-inside: avoid; box-shadow: none; border: 1px solid #c4cec7; animation: none !important; }
}
