/* Homepage presentation. Keep this source in the theme generator as well. */
.homepage {
    --home-ink: #032e42;
    --home-accent: #bb0b0b;
    --home-muted: #596b76;
    --home-line: #e1e8ed;
    --home-surface: #f5f7f9;
    --home-white: #fff;
    color: var(--home-ink);
}
.homepage .home-section { padding: 84px 0; }
.homepage .home-section h2, .homepage .home-cta h2 { margin: 0; color: var(--home-ink); font-size: clamp(27px, 2.5vw, 34px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.homepage .home-section h3 { color: var(--home-ink); font-weight: 600; line-height: 1.4; }
.homepage .home-kicker { display: block; margin-bottom: 13px; color: var(--home-accent); font-size: 13px; font-weight: 600; line-height: 1.65; }
.homepage .home-section-heading { margin-bottom: 30px; }
.homepage .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 13px 24px; border: 1px solid var(--home-accent); border-radius: 10px; background: var(--home-accent); color: var(--home-white); font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.homepage .home-button:hover { color: var(--home-white); box-shadow: 0 5px 18px #032e421a; transform: translateY(-2px); }
.homepage .home-button i { font-size: 14px; }
.homepage a:focus-visible, .homepage button:focus-visible { outline: 3px solid var(--home-ink); outline-offset: 4px; }
.homepage .full-width-header .rs-header .menu-area .expand-btn-inner .btn-quote .quote-button { border-radius: 10px; }

/* One image and a clear action in the opening view. */
.homepage .home-hero { background: var(--home-surface); padding: 68px 0; overflow: hidden; }
.homepage .home-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; }
.homepage .jp-final-content { min-width: 0; max-width: 600px; }
.homepage .jp-final-badge { display: inline-block; margin: 0 0 19px; color: var(--home-accent); font-size: 13px; line-height: 1.6; font-weight: 600; }
.homepage .jp-final-title { margin: 0 0 22px; color: var(--home-ink); font-size: clamp(36px, 3.35vw, 49px); line-height: 1.14; font-weight: 700; letter-spacing: -.035em; overflow-wrap: break-word; }
.homepage .jp-final-desc { max-width: 530px; margin: 0 0 28px; color: var(--home-muted); font-size: 17px; line-height: 1.75; }
.homepage .jp-final-image img { display: block; width: 100%; height: 416px; object-fit: cover; object-position: right center; border-radius: 24px; }

/* Financing details keep a single visual language. */
.homepage .home-conditions { padding: 32px 0 0; background: var(--home-white); }
.homepage .jp-financing-conditions-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px 36px; padding: 27px 30px 21px; border: 1px solid var(--home-line); border-radius: 16px; }
.homepage .jp-financing-conditions-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--home-ink); font-size: 14px; font-weight: 600; }
.homepage .jp-financing-conditions-kicker i { color: var(--home-accent); }
.homepage .jp-financing-conditions-summary { margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.8; }
.homepage .jp-financing-conditions-summary strong { color: var(--home-ink); font-weight: 600; }
.homepage .jp-financing-conditions-card { padding-left: 30px; border-left: 1px solid var(--home-line); }
.homepage .jp-financing-conditions-example-text { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.8; }
.homepage .jp-financing-conditions-warning { grid-column: 1 / -1; margin: 0; padding-top: 17px; border-top: 1px solid var(--home-line); color: var(--home-muted); font-size: 13px; line-height: 1.75; }

/* Native, manual scrolling: no autoplay and no cloned cards. */
.homepage .home-offers-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.homepage .home-offers-heading > div:first-child { max-width: 920px; }
.homepage .home-offers-heading h2 { font-size: clamp(25px, 2.25vw, 32px); }
.homepage .home-carousel-controls { display: flex; flex: none; gap: 9px; padding-bottom: 4px; }
.homepage .home-carousel-controls button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--home-line); border-radius: 50%; background: var(--home-white); color: var(--home-ink); font-size: 13px; cursor: pointer; }
.homepage .home-carousel-controls button:hover:not(:disabled) { border-color: var(--home-ink); }
.homepage .home-carousel-controls button:disabled { opacity: .35; cursor: default; }
.homepage .home-offers-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--home-line) transparent; padding: 4px 0 20px; }
.homepage .home-offer-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-white); scroll-snap-align: start; }
.homepage .home-offer-image { position: relative; }
.homepage .home-offer-image img { width: 100%; height: 200px; object-fit: cover; }
.homepage .home-offer-label { position: absolute; left: 17px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 6px; background: var(--home-white); color: var(--home-ink); font-size: 12px; font-weight: 500; }
.homepage .home-offer-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 23px; }
.homepage .home-offer-content h3 { margin: 0 0 12px; font-size: 20px; }
.homepage .home-offer-content h3 a { color: var(--home-ink); }
.homepage .home-offer-content h3 a:hover { color: var(--home-accent); }
.homepage .home-offer-desc { margin-bottom: 24px; color: var(--home-muted); font-size: 16px; line-height: 1.7; }
.homepage .home-offer-link { display: inline-flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 14px; margin-top: auto; padding: 12px 0 0; border-top: 1px solid var(--home-line); color: var(--home-accent); font-size: 14px; font-weight: 600; }
.homepage .home-offer-link:hover { color: var(--home-ink); }
.homepage .home-offer-link i { font-size: 12px; }

.homepage .home-process { background: var(--home-surface); }
.homepage .home-process-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
.homepage .home-process-visual img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 20px; }
.homepage .home-process .home-kicker { max-width: 640px; font-size: 12px; line-height: 1.75; }
.homepage .home-process h2 { font-size: clamp(26px, 2.2vw, 32px); }
.homepage .home-process-item { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--home-line); }
.homepage .home-process-item:first-child { padding-top: 0; }
.homepage .home-process-item:last-child { padding-bottom: 0; border-bottom: 0; }
.homepage .home-process-icon img { width: 34px; height: 34px; object-fit: contain; }
.homepage .home-process-item h3 { margin: 0 0 8px; font-size: 18px; }
.homepage .home-process-item p { margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.75; }

.homepage .home-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; }
.homepage .home-about-image img { display: block; width: 100%; max-height: 445px; object-fit: contain; }
.homepage .home-about-copy h2 { margin-bottom: 22px; }
.homepage .home-about-copy p { margin: 0 0 14px; color: var(--home-muted); font-size: 16px; line-height: 1.75; }
.homepage .home-about-copy p:last-child { margin-bottom: 0; }
.homepage .home-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.homepage .home-benefit { display: grid; grid-template-columns: 36px 1fr; gap: 20px; align-items: start; padding: 24px; border: 1px solid var(--home-line); border-radius: 14px; }
.homepage .home-benefit > img { width: 36px; height: 36px; object-fit: contain; }
.homepage .home-benefit h3 { margin: 0 0 8px; font-size: 18px; }
.homepage .home-benefit p { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.75; }

.homepage .home-cta { padding: 0; background: var(--home-white); }
.homepage .home-cta-panel { padding: 58px 50px; border-radius: 22px; background: var(--home-ink); text-align: center; }
.homepage .home-cta h2 { max-width: 900px; margin: 0 auto; color: var(--home-white); font-size: clamp(25px, 2.35vw, 32px); }
.homepage .home-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.homepage .home-button-secondary { border-color: #ffffff70; background: transparent; color: var(--home-white); }
.homepage .home-cta a:focus-visible { outline-color: var(--home-white); }

.homepage .home-faq-container { max-width: 990px; }
.homepage .home-faq .home-section-heading { text-align: center; margin-bottom: 32px; }
.homepage .home-faq .faq-content .accordion .card { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--home-line); border-radius: 11px; background: var(--home-white); box-shadow: none; }
.homepage .home-faq .faq-content .accordion .card .card-header { background: var(--home-white); }
.homepage .home-faq .faq-content .accordion .card .card-header .card-link { height: auto; min-height: 64px; padding: 18px 54px 18px 23px; border: 0; border-radius: 0; background: var(--home-white); color: var(--home-ink); text-align: start; font: inherit; font-size: 16px; font-weight: 550; line-height: 1.6; box-shadow: none; cursor: pointer; }
.homepage .home-faq .faq-content .accordion .card .card-header .card-link:after { right: 23px; color: var(--home-accent); }
.homepage .home-faq .faq-content .accordion .card .card-header .card-link:not(.collapsed) { background: var(--home-surface); }
.homepage .home-faq .faq-content .accordion .card .card-header .card-link:focus-visible { outline: 2px solid var(--home-ink); outline-offset: -3px; }
.homepage .home-faq .faq-content .accordion .card .card-body { padding: 18px 23px 23px !important; color: var(--home-muted); font-size: 16px; line-height: 1.8; }
.homepage .home-partners .rs-partner { padding: 32px 0 !important; background: var(--home-surface) !important; }
.homepage .home-partners .logo-img img { max-height: 50px; width: auto; margin: 0 auto; object-fit: contain; }

/* The footer changes apply only to this page. */
.homepage #rs-footer .footer-top { padding: 60px 0 40px; }
.homepage #rs-footer .footer-top .container > .row { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.1fr; gap: 32px; margin: 0; }
.homepage #rs-footer .footer-top .container > .row > div { width: auto; max-width: none; padding: 0 !important; margin: 0 !important; }
.homepage #rs-footer .footer-title { margin-bottom: 21px; padding-bottom: 16px; font-size: 16px; line-height: 1.4; }
.homepage #rs-footer .textwidget { margin-bottom: 0 !important; font-size: 14px; line-height: 1.8; }
.homepage #rs-footer .site-map li { margin-bottom: 11px; line-height: 1.6; }
.homepage #rs-footer .site-map li a { font-size: 14px; line-height: 1.6; }
.homepage #rs-footer .address-widget li { margin-bottom: 16px; padding-bottom: 0; min-height: 28px; }
.homepage #rs-footer .address-widget .desc { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.homepage #rs-footer .footer-financing-notice { margin-top: 32px; font-size: 13px; line-height: 1.8; }
.homepage #rs-footer .footer-bottom { padding: 19px 0; }

@media (max-width: 1199px) {
    .homepage .home-hero-grid, .homepage .home-about-grid, .homepage .home-process-grid { gap: 36px; }
    .homepage .home-offers-track { grid-auto-columns: calc((100% - 24px) / 2); }
    .homepage .home-hero { padding: 52px 0; }
    .homepage .jp-final-image img { height: 375px; }
}
@media (max-width: 991px) {
    .homepage .home-section { padding: 64px 0; }
    .homepage .home-hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .homepage .jp-final-title { font-size: 34px; }
    .homepage .jp-final-desc { font-size: 16px; }
    .homepage .jp-final-image img { height: 350px; }
    .homepage .jp-financing-conditions-shell { gap: 20px; padding: 24px; }
    .homepage .jp-financing-conditions-card { padding-left: 20px; }
    .homepage .home-process-grid, .homepage .home-about-grid { grid-template-columns: 1fr; gap: 30px; }
    .homepage .home-process-visual img { height: 280px; object-position: center 42%; }
    .homepage .home-about-image img { max-height: 280px; }
    .homepage .home-about-copy { max-width: 740px; }
    .homepage #rs-footer .footer-top .container > .row { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .homepage .home-section { padding: 48px 0; }
    .homepage .home-section h2 { font-size: 26px; }
    .homepage .home-hero { padding: 33px 0 30px; }
    .homepage .home-hero-grid { grid-template-columns: 1fr; gap: 27px; }
    .homepage .jp-final-badge { margin-bottom: 15px; font-size: 12px; }
    .homepage .jp-final-title { margin-bottom: 17px; font-size: clamp(29px, 7.4vw, 38px); line-height: 1.2; }
    .homepage .jp-final-desc { margin-bottom: 22px; font-size: 16px; line-height: 1.7; }
    .homepage .jp-final-image img { height: 196px; border-radius: 16px; object-position: right 40%; }
    .homepage .home-button { min-height: 50px; padding: 12px 20px; font-size: 14px; }
    .homepage .home-conditions { padding-top: 22px; }
    .homepage .jp-financing-conditions-shell { grid-template-columns: 1fr; gap: 18px; padding: 21px; border-radius: 14px; }
    .homepage .jp-financing-conditions-summary { font-size: 15px; line-height: 1.8; }
    .homepage .jp-financing-conditions-card { padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--home-line); }
    .homepage .jp-financing-conditions-example-text { font-size: 14px; line-height: 1.8; }
    .homepage .jp-financing-conditions-warning { padding-top: 16px; font-size: 13px; }
    .homepage .home-offers-heading { align-items: start; gap: 18px; flex-wrap: wrap; }
    .homepage .home-offers-heading h2 { font-size: 24px; }
    .homepage .home-offers-heading > div:first-child { flex: 1 1 100%; }
    .homepage .home-carousel-controls { margin-left: auto; padding: 0; }
    .homepage .home-offers .home-section-heading { margin-bottom: 18px; }
    .homepage .home-offers-track { grid-auto-columns: 88%; gap: 16px; padding-bottom: 16px; }
    .homepage .home-offer-image img { height: 185px; }
    .homepage .home-offer-content { padding: 20px; }
    .homepage .home-offer-content h3 { font-size: 19px; }
    .homepage .home-process-visual img { height: 225px; border-radius: 16px; }
    .homepage .home-process .home-kicker { font-size: 12px; }
    .homepage .home-process-item { grid-template-columns: 30px 1fr; gap: 13px; padding: 18px 0; }
    .homepage .home-process-icon img { width: 28px; height: 28px; }
    .homepage .home-process-item h3 { font-size: 18px; }
    .homepage .home-process-item p { font-size: 15px; line-height: 1.8; }
    .homepage .home-about-image img { max-height: 245px; }
    .homepage .home-about-copy p { font-size: 16px; }
    .homepage .home-benefits { grid-template-columns: 1fr; gap: 14px; margin-top: 25px; }
    .homepage .home-benefit { padding: 20px; grid-template-columns: 30px 1fr; gap: 15px; }
    .homepage .home-benefit > img { width: 30px; height: 30px; }
    .homepage .home-benefit h3 { font-size: 17px; }
    .homepage .home-benefit p { font-size: 15px; }
    .homepage .home-cta-panel { padding: 35px 23px; border-radius: 17px; }
    .homepage .home-cta h2 { font-size: 25px; }
    .homepage .home-cta-actions { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 12px; }
    .homepage .home-faq .home-section-heading { text-align: start; margin-bottom: 25px; }
    .homepage .home-faq .faq-content .accordion .card .card-header .card-link { padding: 16px 43px 16px 18px; font-size: 15px; min-height: 60px; }
    .homepage .home-faq .faq-content .accordion .card .card-header .card-link:after { right: 17px; }
    .homepage .home-faq .faq-content .accordion .card .card-body { padding: 15px 18px 20px !important; font-size: 15px; }
    .homepage #rs-footer .footer-top { padding: 40px 0 28px; }
    .homepage #rs-footer .footer-top .container > .row { gap: 27px 24px; }
    .homepage #rs-footer .footer-top .container > .row > div:first-child, .homepage #rs-footer .footer-top .container > .row > div:last-child { grid-column: 1 / -1; }
    .homepage #rs-footer .footer-title { font-size: 15px; margin-bottom: 16px; padding-bottom: 13px; }
    .homepage #rs-footer .footer-financing-notice { margin-top: 26px; padding: 17px; }
    .homepage #rs-footer .site-map li a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .homepage .home-button { transition: none; }
    .homepage .home-button:hover { transform: none; }
}
