/* Collaboration geometry: measured Capitalise component; local type and content. */
.fg-home-journey, .fg-home-expert, .fg-home-values {
    --fg-journey-ink: #123b36;
    --fg-journey-muted: #526b63;
    color: var(--fg-journey-ink);
    font-family: 'Finergia Sans', Arial, Helvetica, sans-serif;
}
:is(.fg-home-journey, .fg-home-expert, .fg-home-values),
:is(.fg-home-journey, .fg-home-expert, .fg-home-values) *,
:is(.fg-home-journey, .fg-home-expert, .fg-home-values) *::before,
:is(.fg-home-journey, .fg-home-expert, .fg-home-values) *::after { box-sizing: border-box; }
/* Only presentational wrappers lose their boxes; articles/headings/links retain theirs. */
:is(.fg-home-journey, .fg-home-expert) :is(.fg-journey-inner, .fg-journey-layout, .fg-journey-copy, .fg-expert-inner, .fg-expert-grid, .fg-expert-copy, .fg-home-reviews) > .wp-block-group__inner-container { display: contents; }
.finergia-content--home .fg-home-journey { scroll-margin-top: max(0px, calc(var(--fg-hero-header-space, 144px) + 24px - var(--fg-journey-space))); }
.finergia-content--home :is(.fg-home-expert, .fg-home-values) { scroll-margin-top: calc(var(--fg-hero-header-space, 144px) + 24px); }
.fg-home-journey { --fg-journey-space: 48px; margin: 8px 0 24px; padding-block: var(--fg-journey-space); background: #fff; }
.fg-home-journey .fg-journey-inner { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 16px; }
.fg-home-journey .fg-journey-layout { margin: 0; }
.fg-home-journey .fg-journey-portrait { display: none; min-width: 0; margin: 0; }
.fg-home-journey .fg-journey-portrait img { display: block; width: 480px; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.fg-home-journey .fg-journey-portrait figcaption { max-width: 480px; margin: 0 auto; padding: 16px 0 0; color: var(--fg-journey-muted); font-size: 16px; line-height: 24px; }
.fg-home-journey .fg-journey-portrait figcaption strong { color: var(--fg-journey-ink); font-weight: 600; }
.fg-home-journey .fg-journey-copy { min-width: 0; margin: 0; }
.fg-home-journey .fg-journey-title { margin: 0 0 16px; font-family: inherit; font-size: 24px; font-weight: 600; line-height: 30px; text-wrap: balance; }
.fg-home-journey .fg-journey-steps { margin: 24px 0; padding-left: 1.625em; color: var(--fg-journey-muted); font-size: 18px; font-weight: 400; line-height: 26px; }
.fg-home-journey .fg-journey-steps > li { margin: 16px 0; padding-left: .375em; }
.fg-home-journey .fg-journey-steps > li::marker { color: #206141; }
.fg-home-journey .fg-journey-steps p { margin: 10px 0; }
.fg-home-journey .fg-journey-steps strong { color: var(--fg-journey-ink); font-weight: 600; }
.fg-home-journey .fg-journey-actions { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; margin: 40px 0 0; }
.fg-home-journey .fg-journey-actions .wp-block-button { width: 100%; margin: 0; }
.fg-home-journey .fg-journey-primary .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 11px 42px; border: 2px solid #206141; border-radius: 4px; background: #206141; color: #fff; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 26px; text-align: center; text-decoration: none; touch-action: manipulation; transition: opacity 300ms cubic-bezier(.4, 0, .2, 1); }
.fg-home-journey .fg-journey-primary .wp-block-button__link:is(:hover, :focus-visible) { opacity: .8; }
:is(.fg-home-journey, .fg-home-expert, .fg-home-values) :is(a, button, summary):focus-visible { outline: 3px solid #206141; outline-offset: 4px; }
/* Extra Finergia entrance: the source process has no entrance animation. */
.fg-home-journey .fg-journey-steps > li.fg-journey-enter { animation: fg-journey-enter 640ms cubic-bezier(.22, 1, .36, 1) both; }
.fg-home-journey .fg-journey-steps > li.fg-journey-enter:nth-child(2) { animation-delay: 70ms; }
.fg-home-journey .fg-journey-steps > li.fg-journey-enter:nth-child(3) { animation-delay: 140ms; }
.fg-home-journey .fg-journey-steps > li.fg-journey-enter:focus-within { animation: none; }
@keyframes fg-journey-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Expert and review panels continue the accepted Finergia card styling. */
.fg-home-expert { width: 100%; max-width: 1440px; margin: 0 auto 64px; padding-inline: 16px; }
.fg-home-expert .fg-expert-inner { max-width: 1216px; margin: 0 auto; padding: 32px 24px; border-radius: 24px; background: #edf4e4; }
.fg-home-expert .fg-expert-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px; margin: 0; }
.fg-home-expert .fg-expert-copy { min-width: 0; margin: 0; }
.fg-home-expert .fg-expert-kicker { margin: 0 0 16px; color: #526b63; font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; }
.fg-home-expert .fg-expert-title { margin: 0; color: var(--fg-journey-ink); font-family: inherit; font-size: 30px; font-weight: 600; line-height: 36px; text-wrap: balance; }
.fg-home-expert .fg-expert-lead { margin: 20px 0 0; color: var(--fg-journey-muted); font-size: 18px; line-height: 28px; }
.fg-home-expert .fg-expert-points { margin: 24px 0 0; padding-left: 1.3em; color: var(--fg-journey-muted); font-size: 17px; line-height: 26px; }
.fg-home-expert .fg-expert-points > li { margin: 12px 0; padding-left: .3em; }
.fg-home-expert .fg-expert-points > li::marker { color: #206141; }
.fg-home-expert .fg-expert-points strong { color: var(--fg-journey-ink); font-weight: 600; }
.fg-home-expert .fg-expert-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.fg-home-expert .fg-expert-actions .wp-block-button { width: 100%; margin: 0; }
.fg-home-expert .fg-expert-actions .wp-block-button__link { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 22px; overflow: hidden; border: 1px solid transparent; border-radius: 12px; background: #c6df58; color: #12352b; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 22px; text-align: center; text-decoration: none; touch-action: manipulation; }
.fg-home-expert .fg-expert-primary .wp-block-button__link::before { position: absolute; z-index: -1; top: 50%; left: calc(-100% - 56px); width: calc(100% + 56px); height: 150px; border-radius: 0 50% 50% 0; background: #e0ed99; content: ''; transform: translateY(-50%); transition: left 800ms ease-out; pointer-events: none; }
.fg-home-expert .fg-expert-primary .wp-block-button__link:is(:hover, :focus-visible, :active)::before { left: 0; }
.fg-home-expert .fg-expert-secondary .wp-block-button__link { border-color: #b8c9ac; background: transparent; color: #123b36; transition: background-color 160ms ease; }
.fg-home-expert .fg-expert-secondary .wp-block-button__link:is(:hover, :focus-visible) { background: #fff; }
.fg-home-expert .finergia-form-placeholder { margin: 32px 0 0; padding: 16px 20px; border: 1px dashed #b9c6b2; border-radius: 8px; background: transparent; color: var(--fg-journey-muted); font-size: 15px; line-height: 23px; }
.fg-home-expert .fg-home-reviews { --fg-forest: #123b36; --fg-muted: #526b63; --fg-line: #e3eae5; min-width: 0; margin: 0; padding: 32px; border-radius: 18px; background: #fff; }
.fg-home-reviews .fg-reviews-title { margin: 0; color: #123b36; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 32px; }
.fg-home-reviews .fg-reviews-note { margin: 16px 0 0; color: #526b63; font-size: 16px; line-height: 24px; }
.fg-home-reviews .fg-trust-row { display: block; min-height: 0; margin: 24px 0 0; border: 0; }
.fg-home-reviews .fg-review-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; min-height: 44px; padding: 0; border-radius: 6px; color: #123b36; font-size: 16px; line-height: 24px; text-decoration: none; }
.fg-home-reviews .fg-trust-logo { display: block; flex: none; width: 144px; max-width: 100%; height: auto; object-fit: contain; }
.fg-home-reviews .fg-trust-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fg-home-reviews .fg-trust-stars { gap: 3px; }
.fg-home-reviews .fg-trust-stars svg { width: 24px; height: 24px; }
.fg-home-reviews .fg-trust-rating { font-size: 32px; font-weight: 600; line-height: 40px; }
.fg-home-reviews .fg-trust-name { font-size: 24px; font-weight: 600; line-height: 30px; }
.fg-home-reviews .fg-trust-count { white-space: normal; }
.fg-home-reviews .fg-review-badge:is(:hover, :focus-visible) .fg-trust-count { text-decoration: underline; text-underline-offset: 4px; }

.fg-home-values { width: calc(100% - 32px); max-width: 1216px; margin: 0 auto 96px; padding: 0; border-block: 1px solid #d9e3d4; }
.fg-home-values > summary { padding: 24px; font-size: 20px; font-weight: 600; line-height: 28px; cursor: pointer; touch-action: manipulation; }
.fg-home-values[open] > summary { border-bottom: 1px solid #d9e3d4; }
.fg-home-values > :not(summary) { margin-inline: 24px; }
.fg-home-values > :last-child:not(summary) { margin-bottom: 24px; }
.fg-home-values :is(h2, h3) { font-family: inherit; font-size: 26px; font-weight: 600; line-height: 34px; }
.fg-home-values :is(p, li) { font-size: 16px; line-height: 26px; }
.fg-home-values :is(strong, b) { font-weight: 600; }

@media (min-width: 768px) {
    .fg-home-journey { --fg-journey-space: 64px; margin-bottom: 48px; }
    .fg-home-journey .fg-journey-inner, .fg-home-expert { padding-inline: 48px; }
    .fg-home-journey .fg-journey-title { margin-bottom: 24px; font-size: 50px; line-height: 55.008px; }
    .fg-home-journey .fg-journey-steps { font-size: 22px; line-height: 36px; }
    .fg-home-journey .fg-journey-actions .wp-block-button, .fg-home-journey .fg-journey-primary .wp-block-button__link { width: auto; }
    .fg-home-expert .fg-expert-inner { padding: 48px; }
    .fg-home-expert .fg-expert-title { font-size: 40px; line-height: 46px; }
    .fg-home-expert .fg-expert-actions .wp-block-button, .fg-home-expert .fg-expert-actions .wp-block-button__link { width: auto; }
    .fg-home-values { width: calc(100% - 96px); }
}
@media (min-width: 1024px) {
    .fg-home-journey .fg-journey-layout { display: flex; flex-direction: row-reverse; align-items: center; column-gap: 24px; }
    .fg-home-journey .fg-journey-portrait { display: block; width: 50%; }
    .fg-home-journey .fg-journey-copy { width: 50%; }
    .fg-home-expert .fg-expert-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 1200px) {
    .fg-home-journey .fg-journey-inner, .fg-home-expert { padding-inline: 112px; }
    .fg-home-journey .fg-journey-copy { padding-right: 48px; }
    .fg-home-values { width: calc(100% - 224px); }
}
@media (min-width: 1440px) {
    .fg-home-journey .fg-journey-copy { padding-right: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.fg-home-journey, .fg-home-expert, .fg-home-values) *,
    :is(.fg-home-journey, .fg-home-expert, .fg-home-values) *::before,
    :is(.fg-home-journey, .fg-home-expert, .fg-home-values) *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
    .fg-home-expert .fg-home-reviews { border: 1px solid CanvasText; }
    :is(.fg-journey-actions, .fg-expert-actions) .wp-block-button__link { border-color: ButtonText; }
}
@media print {
    .fg-home-journey { margin: 0 0 24px; padding: 24px 0; }
    .fg-home-expert { margin-bottom: 24px; }
    .fg-home-journey .fg-journey-inner, .fg-home-expert { padding-inline: 0; }
    .fg-home-expert .fg-expert-inner { padding: 24px; }
    .fg-home-expert .fg-home-reviews { break-inside: avoid; }
    .fg-home-reviews .fg-trust-row { display: block !important; }
    .fg-home-values { width: 100%; margin-bottom: 24px; }
    :is(.fg-home-journey, .fg-home-expert, .fg-home-values) * { animation: none !important; }
}
