/* =========================================================
   Home redesign — RU and DE HOME pages (shared)
   All selectors scoped under .home-redesign so this file
   can safely load alongside the global stylesheet stack.
   Uses --pa-* tokens defined in design-system.css.
   ========================================================= */

/* ── Section background rhythm ─────────────────────────── */
.home-redesign .hr-section {
  width:      100%;
  box-sizing: border-box;
  padding:    48px 0;
  border-top: 1px solid var(--pa-border);
}

.home-redesign .hr-section--first {
  border-top: none;
  padding-top: 36px;
}

.home-redesign .hr-section--white { background: #ffffff; }
.home-redesign .hr-section--soft  { background: var(--pa-bg-alt); }
.home-redesign .hr-section--warm  { background: #f8f6f2; }
.home-redesign .hr-section--accent-soft { background: #fbf7ef; }
.home-redesign .hr-section--cta {
  background: linear-gradient(180deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
}

@media (max-width: 767px) {
  .home-redesign .hr-section { padding: 32px 0; }
}
@media (max-width: 480px) {
  .home-redesign .hr-section { padding: 24px 0; }
}

/* ── Intro after hero (H1 + lead + trust strip) ──────── */
.home-redesign .hr-intro {
  text-align: left;
}

.home-redesign .hr-overline {
  display:        block;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color:          var(--pa-accent);
  margin:         0 0 14px;
  line-height:    1;
}

.home-redesign .hr-intro h1 {
  width:       100%;
  max-width:   820px;
  text-align:  left;
  font-size:   40px;
  line-height: 1.15;
  font-weight: 800;
  color:       var(--pa-text);
  letter-spacing: -0.02em;
  margin:      0 0 22px;
  padding:     0;
}

.home-redesign .hr-intro h1 .hr-accent {
  color: var(--pa-accent);
}

.home-redesign .hr-lead {
  font-size:   17px;
  line-height: 1.75;
  color:       var(--pa-text);
  max-width:   780px;
  margin:      0 0 24px;
}

.home-redesign .hr-cta-row {
  display:     flex;
  flex-wrap:   wrap;
  gap:         12px 14px;
  margin:      18px 0 6px;
  align-items: center;
}

.home-redesign .hr-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         13px 22px;
  border-radius:   var(--pa-radius-btn);
  font-size:       15px;
  font-weight:     600;
  line-height:     1.2;
  text-decoration: none;
  transition:      background .15s ease, border-color .15s ease, color .15s ease;
  border:          1px solid transparent;
  cursor:          pointer;
}

.home-redesign .hr-btn--primary {
  background: var(--pa-primary);
  color:      #ffffff;
}
.home-redesign .hr-btn--primary:hover,
.home-redesign .hr-btn--primary:focus {
  background: var(--pa-primary-dark);
  color:      #ffffff;
}

.home-redesign .hr-btn--gold {
  background: var(--pa-accent);
  color:      #ffffff;
}
.home-redesign .hr-btn--gold:hover,
.home-redesign .hr-btn--gold:focus {
  background: var(--pa-accent-dark);
  color:      #ffffff;
}

.home-redesign .hr-btn--ghost {
  background:   transparent;
  color:        var(--pa-primary);
  border-color: var(--pa-border);
}
.home-redesign .hr-btn--ghost:hover,
.home-redesign .hr-btn--ghost:focus {
  background:   var(--pa-bg-alt);
  border-color: var(--pa-primary);
  color:        var(--pa-primary);
}

.home-redesign .hr-btn--whatsapp {
  background: #25d366;
  color:      #ffffff;
}
.home-redesign .hr-btn--whatsapp:hover,
.home-redesign .hr-btn--whatsapp:focus {
  background: #1ebe57;
  color:      #ffffff;
}

.home-redesign .hr-btn--light {
  background: #ffffff;
  color:      var(--pa-primary);
}
.home-redesign .hr-btn--light:hover,
.home-redesign .hr-btn--light:focus {
  background: var(--pa-bg-alt);
  color:      var(--pa-primary);
}

.home-redesign .hr-btn--gold-outline {
  background:   transparent;
  color:        #ffffff;
  border-color: var(--pa-accent);
}
.home-redesign .hr-btn--gold-outline:hover,
.home-redesign .hr-btn--gold-outline:focus {
  background:   var(--pa-accent);
  color:        #ffffff;
  border-color: var(--pa-accent);
}

.home-redesign .hr-btn .fa { font-size: 14px; }

/* Trust strip — local copy, not scoped to calculator-layout */
.home-redesign .hr-trust {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: flex-start;
  align-items:     center;
  gap:             8px 22px;
  font-size:       13px;
  color:           var(--pa-text-muted);
  border-top:      1px solid var(--pa-border);
  border-bottom:   1px solid var(--pa-border);
  padding:         14px 0;
  margin:          26px 0 4px;
  list-style:      none;
}
.home-redesign .hr-trust li {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  white-space: nowrap;
}
.home-redesign .hr-trust .fa {
  color:     var(--pa-accent);
  font-size: 13px;
}

@keyframes hr-trust-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  /* Fallback: horizontal scroll (no-JS or prefers-reduced-motion) */
  .home-redesign .hr-trust {
    flex-wrap:          nowrap;
    overflow-x:         auto;
    overflow-y:         hidden;
    justify-content:    flex-start;
    gap:                0 22px;
    scrollbar-width:    none;
    -ms-overflow-style: none;
    padding-left:       2px;
    padding-right:      2px;
  }
  .home-redesign .hr-trust::-webkit-scrollbar { display: none; }

  /* When JS creates .trust-track: switch to marquee */
  .home-redesign .hr-trust:has(.trust-track) {
    overflow: hidden;
    gap:      0;
  }
  .home-redesign .hr-trust .trust-track {
    display:     flex;
    align-items: center;
    gap:         0 28px;
    width:       max-content;
    flex-shrink: 0;
    animation:   hr-trust-scroll 24s linear infinite;
    will-change: transform;
  }
}

/* Reduced motion: kill animation, let strip scroll */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .home-redesign .hr-trust:has(.trust-track) { overflow-x: auto; }
  .home-redesign .hr-trust .trust-track      { animation: none; }
}

/* Body paragraphs */
.home-redesign .hr-body p {
  font-size:   15px;
  line-height: 1.75;
  color:       var(--pa-text);
  max-width:   780px;
  margin:      0 0 14px;
}

.home-redesign .hr-body p:last-child { margin-bottom: 0; }

/* Inline links */
.home-redesign a {
  color:                 var(--pa-primary);
  text-decoration:       underline;
  text-underline-offset: 2px;
}
.home-redesign a:hover,
.home-redesign a:focus { color: var(--pa-accent); }
.home-redesign .hr-btn,
.home-redesign .hr-btn:hover {
  text-decoration: none;
}

/* ── Section headings ───────────────────────────────── */
.home-redesign .hr-section h2 {
  margin:      0 0 18px;
  font-size:   clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color:       var(--pa-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-redesign .hr-section h3 {
  margin:      0 0 10px;
  font-size:   17px;
  font-weight: 700;
  color:       var(--pa-primary);
  line-height: 1.3;
}

.home-redesign .hr-section--cta h2,
.home-redesign .hr-section--cta h3 { color: #ffffff; }

.home-redesign .hr-section-eyebrow {
  margin:          0 0 8px;
  font-size:       11px;
  font-weight:     700;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  color:           var(--pa-accent);
}

.home-redesign .hr-section-intro {
  font-size:   16px;
  line-height: 1.7;
  color:       var(--pa-text);
  max-width:   780px;
  margin:      0 0 28px;
}

.home-redesign .hr-section--cta .hr-section-intro { color: rgba(255,255,255,.85); }

/* ── Feature card grid (2 / 3 columns) ──────────────── */
.home-redesign .hr-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   20px;
}
.home-redesign .hr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.home-redesign .hr-grid--4 { grid-template-columns: repeat(4, 1fr); }

.home-redesign .hr-card {
  background:    #ffffff;
  border:        1px solid var(--pa-border);
  border-radius: var(--pa-radius-card);
  box-shadow:    var(--pa-shadow-card);
  padding:       24px 22px;
  transition:    box-shadow .2s ease, border-color .2s ease;
}
.home-redesign .hr-card:hover {
  border-color: var(--pa-accent);
  box-shadow:   0 4px 14px rgba(0, 0, 0, .09);
}
.home-redesign .hr-card p {
  margin:      0;
  font-size:   14.5px;
  line-height: 1.65;
  color:       var(--pa-text);
}
.home-redesign .hr-card p + p { margin-top: 10px; }

.home-redesign .hr-card-icon {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           42px;
  height:          42px;
  border-radius:   10px;
  background:      #faf5ea;
  color:           var(--pa-accent);
  font-size:       18px;
  margin-bottom:   14px;
}

/* Step number variant */
.home-redesign .hr-card-step {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  border-radius:   50%;
  background:      var(--pa-primary);
  color:           #ffffff;
  font-size:       16px;
  font-weight:     700;
  margin-bottom:   12px;
  letter-spacing:  0;
}

@media (max-width: 900px) {
  .home-redesign .hr-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .home-redesign .hr-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .home-redesign .hr-grid    { gap: 14px; }
  .home-redesign .hr-card    { padding: 20px 18px; }
}
@media (max-width: 640px) {
  .home-redesign .hr-grid,
  .home-redesign .hr-grid--3,
  .home-redesign .hr-grid--4 { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Callout box (gold left accent) ────────────────── */
.home-redesign .hr-callout {
  background:    #f8f6f2;
  border:        1px solid #e8e0d0;
  border-left:   3px solid var(--pa-accent);
  border-radius: 6px;
  padding:       18px 22px;
  margin:        18px 0 22px;
}
.home-redesign .hr-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pa-text);
}

/* ── Check list (trust list) ───────────────────────── */
.home-redesign .hr-checklist {
  list-style: none;
  padding:    0;
  margin:     0;
  display:    grid;
  grid-template-columns: repeat(2, 1fr);
  gap:        10px 18px;
}
.home-redesign .hr-checklist li {
  display:               grid;
  grid-template-columns: 22px 1fr;
  align-items:           start;
  gap:                   10px;
  font-size:             14.5px;
  line-height:           1.55;
  color:                 var(--pa-text);
}
.home-redesign .hr-checklist li::before {
  content:         "\f00c";
  font-family:     FontAwesome;
  color:           #10b981;
  font-size:       13px;
  line-height:     1.4;
  padding-top:     2px;
}
@media (max-width: 640px) {
  .home-redesign .hr-checklist { grid-template-columns: 1fr; }
}

/* ── Two-column block (text + sidebar card) ───────── */
.home-redesign .hr-two-col {
  display:               grid;
  grid-template-columns: 1fr 360px;
  gap:                   40px;
  align-items:           start;
}
.home-redesign .hr-two-col .hr-side-card {
  background:    #ffffff;
  border:        1px solid var(--pa-border);
  border-radius: var(--pa-radius-card);
  box-shadow:    var(--pa-shadow-card);
  padding:       22px 22px;
}
.home-redesign .hr-two-col .hr-side-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}
.home-redesign .hr-two-col .hr-side-card p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .home-redesign .hr-two-col { grid-template-columns: 1fr 280px; gap: 24px; }
}
@media (max-width: 640px) {
  .home-redesign .hr-two-col { grid-template-columns: 1fr; gap: 18px; }
}

/* ── City chips ────────────────────────────────────── */
.home-redesign .hr-chips {
  list-style: none;
  margin:     12px 0 22px;
  padding:    0;
  display:    flex;
  flex-wrap:  wrap;
  gap:        8px;
}
.home-redesign .hr-chips li a {
  display:         inline-flex;
  align-items:     center;
  padding:         8px 14px;
  background:      #ffffff;
  border:          1px solid var(--pa-border);
  border-radius:   999px;
  font-size:       13.5px;
  color:           var(--pa-primary);
  text-decoration: none;
  transition:      border-color .15s ease, background .15s ease, color .15s ease;
}
.home-redesign .hr-chips li a:hover,
.home-redesign .hr-chips li a:focus {
  background:   var(--pa-bg-alt);
  border-color: var(--pa-accent);
  color:        var(--pa-accent);
}
.home-redesign .hr-chips li.is-static {
  display:       inline-flex;
  align-items:   center;
  padding:       8px 14px;
  background:    #ffffff;
  border:        1px solid var(--pa-border);
  border-radius: 999px;
  font-size:     13.5px;
  color:         var(--pa-text);
}

/* ── Final CTA panel ───────────────────────────────── */
.home-redesign .hr-cta-block {
  text-align: left;
  max-width:  860px;
}

.home-redesign .hr-cta-block .hr-phone {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  font-size:       16px;
  color:           #ffffff;
  text-decoration: none;
  margin-top:      14px;
}
.home-redesign .hr-cta-block .hr-phone .fa { color: var(--pa-accent); }
.home-redesign .hr-cta-block .hr-phone:hover { color: var(--pa-accent); }

/* ── FAQ accordion — scoped local copy ─────────────── */
.home-redesign .hr-faq-items {
  display:        flex;
  flex-direction: column;
  gap:            8px;
  margin:         18px 0 22px;
}
.home-redesign details.hr-faq-item {
  background:    #ffffff;
  border:        1px solid #d9dee7;
  border-radius: var(--pa-radius-card);
  overflow:      hidden;
  transition:    border-color .15s ease;
}
.home-redesign details.hr-faq-item[open] {
  border-color: var(--pa-accent);
}
.home-redesign details.hr-faq-item > summary {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             16px;
  padding:         17px 20px;
  font-size:       15px;
  font-weight:     600;
  color:           var(--pa-primary);
  line-height:     1.4;
  list-style:      none;
  cursor:          pointer;
  user-select:     none;
  border-radius:   var(--pa-radius-card);
  transition:      background .12s ease;
}
.home-redesign details.hr-faq-item > summary::-webkit-details-marker { display: none; }
.home-redesign details.hr-faq-item > summary:hover { background: #f9f8f6; }
.home-redesign details.hr-faq-item > summary::after {
  content:     '+';
  flex-shrink: 0;
  font-size:   22px;
  font-weight: 300;
  line-height: 1;
  color:       var(--pa-accent);
  width:       22px;
  text-align:  center;
  transition:  transform .2s ease;
}
.home-redesign details.hr-faq-item[open] > summary {
  border-radius: var(--pa-radius-card) var(--pa-radius-card) 0 0;
}
.home-redesign details.hr-faq-item[open] > summary::after { content: '−'; }
.home-redesign .hr-faq-answer {
  padding:    0 20px 18px;
  border-top: 1px solid #e9ecf1;
}
.home-redesign .hr-faq-answer p {
  margin:      14px 0 0;
  font-size:   14px;
  line-height: 1.7;
  color:       var(--pa-text-muted);
}
.home-redesign .hr-faq-answer p:last-child { margin-bottom: 0; }
.home-redesign .hr-faq-answer a {
  color: var(--pa-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-redesign .hr-faq-answer a:hover { color: var(--pa-accent); }

/* ── Inline CTA below sections ─────────────────────── */
.home-redesign .hr-inline-cta {
  margin-top: 22px;
  display:    flex;
  flex-wrap:  wrap;
  gap:        10px 14px;
  align-items: center;
}

/* ── Small CTA links list ──────────────────────────── */
.home-redesign .hr-link-list {
  list-style: none;
  margin:     12px 0 0;
  padding:    0;
  display:    flex;
  flex-wrap:  wrap;
  gap:        8px 18px;
}
.home-redesign .hr-link-list li a {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  font-size:       14px;
  color:           var(--pa-primary);
  text-decoration: none;
  border-bottom:   1px solid transparent;
  padding-bottom:  1px;
  transition:      color .15s ease, border-color .15s ease;
}
.home-redesign .hr-link-list li a::before {
  content:     "→";
  color:       var(--pa-accent);
  font-weight: 700;
}
.home-redesign .hr-link-list li a:hover,
.home-redesign .hr-link-list li a:focus {
  color:         var(--pa-accent);
  border-color:  var(--pa-accent);
}

/* ── CTA section: contrast, hover and mobile layout ────── */

/* Plain links (phone, text) — not buttons */
.home-redesign .hr-section--cta a:not(.hr-btn)      { color: #ffffff; }
.home-redesign .hr-section--cta a:not(.hr-btn):hover { color: #d8b568; }

/* Eyebrow label: brighter gold, tighter tracking */
.home-redesign .hr-section--cta .hr-section-eyebrow {
  color:          #d8b568;
  letter-spacing: 0.08em;
}

/* Extend base btn transition with lift + shadow for this context */
.home-redesign .hr-section--cta .hr-btn {
  min-height:    54px;
  padding:       0 24px;
  border-radius: 7px;
  font-weight:   700;
  transition:    background .18s ease, border-color .18s ease, color .18s ease,
                 box-shadow .18s ease, transform .15s ease;
}

/* Primary CTA — gold bg, dark readable text */
.home-redesign .hr-section--cta .hr-btn--gold {
  background: #d8b568;
  color:      #172232;
  border:     1px solid #d8b568;
}
.home-redesign .hr-section--cta .hr-btn--gold:hover,
.home-redesign .hr-section--cta .hr-btn--gold:focus {
  background:   #f0c978;
  border-color: #f0c978;
  color:        #101820;
  transform:    translateY(-1px);
  box-shadow:   0 8px 18px rgba(0,0,0,.22);
}

/* Secondary — glass outline, flips to gold on hover */
.home-redesign .hr-section--cta .hr-btn--light {
  background: rgba(255,255,255,.06);
  color:      #ffffff;
  border:     1px solid rgba(216,181,104,.75);
}
.home-redesign .hr-section--cta .hr-btn--light:hover,
.home-redesign .hr-section--cta .hr-btn--light:focus {
  background:   #d8b568;
  color:        #172232;
  border-color: #d8b568;
  transform:    translateY(-1px);
  box-shadow:   0 8px 18px rgba(0,0,0,.22);
}

/* WhatsApp — forest green, not acid #25d366 */
.home-redesign .hr-section--cta .hr-btn--whatsapp {
  background: #128c4a;
  color:      #ffffff;
  border:     1px solid #128c4a;
}
.home-redesign .hr-section--cta .hr-btn--whatsapp:hover,
.home-redesign .hr-section--cta .hr-btn--whatsapp:focus {
  background:   #0b6f3a;
  border-color: #0b6f3a;
  color:        #ffffff;
  transform:    translateY(-1px);
  box-shadow:   0 8px 18px rgba(0,0,0,.22);
}

/* Snap back on click */
.home-redesign .hr-section--cta .hr-btn:active {
  transform:  translateY(0) !important;
  box-shadow: none !important;
}

/* Keyboard focus ring */
.home-redesign .hr-section--cta .hr-btn:focus-visible {
  outline:        2px solid rgba(240,201,120,.75);
  outline-offset: 3px;
}

/* Phone link: slightly larger */
.home-redesign .hr-section--cta .hr-phone {
  font-size:   19px;
  font-weight: 500;
}

/* ── Responsive: intro headline ─────────────────────── */
@media (max-width: 767px) {
  .home-redesign .hr-intro h1 {
    font-size:   26px;
    line-height: 1.2;
    margin:      0 0 16px;
  }
  .home-redesign .hr-lead { font-size: 15px; }
  .home-redesign .hr-section h2 { font-size: 22px; margin-bottom: 14px; }
  .home-redesign .hr-cta-row .hr-btn { padding: 12px 18px; font-size: 14.5px; }

  /* CTA section: full-width stacked buttons on mobile */
  .home-redesign .hr-section--cta .hr-cta-row {
    flex-direction: column;
    gap:            10px;
  }
  .home-redesign .hr-section--cta .hr-cta-row .hr-btn {
    width:           100%;
    min-height:      52px;
    justify-content: center;
    padding:         0 20px;
  }
  .home-redesign .hr-section--cta .hr-phone { font-size: 17px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .home-redesign .hr-intro h1 { font-size: 32px; }
}

/* Last child margins inside hr-section */
.home-redesign .hr-section > .uibox-container > :last-child { margin-bottom: 0; }
