/* Scope legacy header typography and spacing to the homepage preview.
   The shared site reset otherwise overrides Bootstrap list margins and fonts. */
.homepage-preview .casual-header {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.homepage-preview .header-right-list { margin-bottom: 16px; }
.homepage-preview .casual-header .nav-link,
.homepage-preview .casual-header .dropdown-item { line-height: 1.5; }
.homepage-preview .casual-header > header {
    border-top: 0;
    padding: 10px 0;
}

.static-home .home-gallery-link { color: white; text-decoration: none; }
.static-home .home-gallery-link:focus-visible { outline: 3px solid #9a0a2e; outline-offset: -3px; }
.static-home .corona-banner { text-decoration: none; }
.static-home .corona-banner-image { background-image: url('../images/site/coronapic.jpg'); }
.static-home .bankruptcy-right-partner-img { max-width: 100%; object-fit: cover; }
.static-home .contact_information_right_form fieldset { min-width: 0; }
.static-home .contact_information_right_form input,
.static-home .contact_information_right_form textarea { max-width: 100%; }
.static-home button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 767px) {
    .static-home .corona-contacts .row { row-gap: 24px; }
    .static-home .contact_information_right_form > div { margin-bottom: 20px; }
}

/* The left legacy banners use the natural image size, not cover cropping. */
.static-home .top-row,
.static-home .bottom-row { background-size: auto; }
.static-home .row-right-column { background-size: cover; }

.static-home .home-introduction {
    color: #00305b;
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 150px 0;
}

/* Match the legacy banner rhythm without changing shared page typography. */
.static-home .container-first-block p {
    line-height: 1.5;
    margin: 0 0 16px;
}
.static-home .container-first-block .container-right-column p:nth-child(2) {
    margin: 0;
}

/* Restore the legacy headings after the shared site's typography reset. */
.static-home .container-third-block_heading h2 {
    color: #00305b;
    font-family: Verdana, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 8px;
}

.static-home .home-testimonials {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.static-home .slide-wrapper p {
    font: inherit;
    margin: 0 0 16px;
    text-align: left;
}

.static-home .slide-wrapper em,
.static-home .slide-wrapper i {
    font-style: italic;
}

.static-home .slide-wrapper strong,
.static-home .slide-wrapper b {
    font-weight: bold;
}

.static-home .slide-wrapper-author {
    margin: 0;
    text-align: left;
}

.static-home .container-img-quote {
    flex-shrink: 0;
}

/* Keep the contact preview consistent with the legacy homepage. */
.static-home .contacts {
    background-image: url('../images/background/background-grey.jpg');
    color: #212529;
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.static-home .contact_information_left h2 {
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 8px;
}

.static-home .contact-social-icon {
    margin: 0 0 16px;
}

.static-home .contact_information_right p {
    line-height: 1.5;
}

.static-home .contact_information_right_form input,
.static-home .contact_information_right_form textarea,
.static-home .contact_information_right_form button {
    font-family: inherit;
    line-height: 1.5;
}

.static-home .contact_information_right_form input:disabled,
.static-home .contact_information_right_form textarea:disabled {
    background-color: #fff;
    color: #495057;
    opacity: 1;
    cursor: not-allowed;
}

.static-home .contact_information_right_form textarea:disabled {
    border-color: #767676;
}

.static-home .contact_information_right_form button:disabled {
    background-color: #41b7c4;
}

.static-home #home-contact-note {
    max-width: 540px;
    font-size: 12px;
}

.static-home #home-contact-note a {
    color: #b7e6eb;
    text-decoration: underline;
}

/* Restore footer rhythm without affecting existing public forms. */
.homepage-preview footer {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.homepage-preview .footer-find-problem,
.homepage-preview .footer-find-problem .newsletter-link,
.homepage-preview .footer-address {
    line-height: 1.5;
}

@media (max-width: 767px) {
    .homepage-preview .footer-find-problem {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .homepage-preview .footer-find-problem .newsletter-link {
        margin-left: 0;
    }

    .homepage-preview .container-counter {
        position: static;
        padding: 12px 0;
    }
}

@font-face {
    font-family: 'Abril Fatface';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/AbrilFatface-Regular.ttf') format('truetype');
}

.homepage-preview .container-counter {
    font-family: 'Abril Fatface', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: .8;
    text-align: center;
    color: #212529;
}

.homepage-preview .container-counter .counter-text {
    font-family: 'Gilroy Regular', sans-serif;
    font-size: 14px;
    font-weight: 900;
}

/* The homepage inherits legacy typography, not the shared form reset. */
.homepage-preview .static-home {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
}

.static-home .container-third-block_partner-name p,
.static-home .container-third-block_partner-info p {
    line-height: 1.5;
    margin: 0 0 16px;
}

.static-home .container-third-block_partner-info p:first-child {
    margin: 25px 0 5px;
}

.static-home .container-third-block_button a,
.static-home .container-second-block_button a {
    line-height: 1.5;
}

.homepage-preview .casual-header .navbar-nav-mobile .nav-link {
    line-height: 2.4;
}
