/* =====================================================================
   Legacy compatibility layer — reproduces the custom classes that the old
   Bootswatch/Encore theme (_bootswatch.scss, now removed) defined and that
   templates still reference (.section-*, .shiny-button-*, .dropcaps-circle,
   .btn-xl, pricing-list, ribbon, …), restyled onto the new #9e1a1a brand.
   Load AFTER bootstrap.min.css + vatprotect.css. As pages are redesigned onto
   the new DS components, their reliance on these classes can be dropped and
   this file shrinks. */

html {
    scroll-behavior: smooth;
}

/* ---- Sections ---- */
.section-white {
    background: #fff;
    padding: 60px 0;
}

.section-grey {
    background: #fafbfc;
    padding: 60px 0;
}

.section-grey-20 {
    background: #fafbfc;
    padding: 20px 0;
}

.section-primary {
    background: var(--vp-crimson-600);
    background-image: radial-gradient(900px 500px at 85% -10%, rgba(212, 162, 74, 0.22), transparent 60%),
    linear-gradient(160deg, #9e1a1a 0%, #781818 100%);
    color: #fff;
    padding: 60px 0;
}

.section-primary h1, .section-primary h2, .section-primary h3 {
    color: #fff;
}

.section-top-border {
    border-top: 1px solid #efefef;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2rem;
    padding: 1rem 0;
}

/* ---- Country-page hero (flag background + crimson overlay) ---- */
.home-section {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 180px 0 140px;
    background-size: cover;
    background-position: center;
}

.home-section-overlay {
    position: absolute;
    inset: 0;
    background: #9e1a1a;
    opacity: .82;
}

.home-section .container {
    position: relative;
    z-index: 1;
}

.padding-top-50 {
    padding-top: 50px;
}

.padding-top-30 {
    padding-top: 30px;
}

/* ---- Active nav ---- */
.navbar .nav-link.active {
    color: #9e1a1a;
    font-weight: 700;
}

.navbar-toggler {
    color: #9e1a1a;
    border-color: rgba(158, 26, 26, .4);
}

/* Countries mega-menu (3 columns @md+) */
@media (min-width: 768px) {
    .dropdown-menu-countries {
        min-width: 34rem;
        padding: .5rem .75rem;
        columns: 3;
        column-gap: .75rem;
    }

    .dropdown-menu-countries .dropdown-item {
        padding: .35rem .5rem;
        border-radius: .25rem;
        break-inside: avoid;
        white-space: nowrap;
    }
}

/* ---- Legacy buttons → new brand buttons ---- */
.shiny-button-primary-white {
    position: relative;
    overflow: hidden;
    background: #9e1a1a;
    border: 1px solid #9e1a1a;
    color: #fff;
}

.shiny-button-primary-white:hover {
    background: #871616;
    border-color: #871616;
    color: #fff;
}

.shiny-button-white-gray {
    background: #fff;
    border: 1px solid #e7e3e3;
    color: #9e1a1a;
}

.shiny-button-white-gray:hover {
    background: #faf7f7;
    color: #781818;
}

.btn-xl {
    padding: .55rem 1.6rem;
    font-size: 1.6rem;
    line-height: 1.4;
    border-radius: .9rem;
}

/* ---- Feature icons ---- */
.feature-box i {
    margin-bottom: .6rem;
    font-size: 3rem;
    color: #9e1a1a;
}

/* ---- Numbered "how it works" circles ---- */
.dropcaps-circle {
    float: left;
    margin-right: 30px;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    color: #9e1a1a;
    font-size: 50px;
    line-height: 100px;
    position: relative;
    border-radius: 50%;
    transition: all .5s ease-in-out;
}

/* ---- Misc utilities carried over ---- */
.box-shadow {
    box-shadow: 0 2px 8px rgba(33, 37, 41, .10);
}

/* BS4 form theme leftover: .form-group lost its margin in BS5 — restore field spacing. */
.form-group {
    margin-bottom: 1rem;
}

.text-monospace {
    font-family: var(--vp-font-mono);
}

.hero-image {
    border-radius: var(--bs-border-radius-lg);
}

.toc a {
    display: block;
}

.features-second {
    margin: 2.5rem 0;
}

.page-item.disabled {
    cursor: not-allowed;
}

.line-through-text {
    position: relative;
    text-decoration: none;
}

.line-through-text::before, .line-through-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #9e1a1a;
}

.line-through-text::before {
    left: 0;
}

.line-through-text::after {
    right: 0;
}

.line-through-text-long::before, .line-through-text-long::after {
    width: 100px;
}

/* ---- Pricing list / price box / ribbon (pricing + demo pages) ---- */
.price-box {
    text-align: center;
    background-color: #fff;
    border-bottom: 3px solid #e0e0e0;
    box-shadow: rgba(33, 33, 33, .06) 0 4px 24px 5px;
    padding: 40px 0 30px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all .3s ease-in-out;
}

.price-box:hover {
    border-bottom: 3px solid #9e1a1a;
}

.price-box .price-subtitle, .price-box .price-text {
    color: #6a6a6a;
}

ul.pricing-list {
    padding: 0 55px;
    margin: 0;
}

ul.pricing-list li {
    list-style: none;
}

ul.pricing-list li i {
    color: #9e1a1a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    margin-right: 10px;
}

ul.pricing-list li.price-title {
    font-size: 1.75rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #071e55;
}

ul.pricing-list li.price-value {
    font-family: var(--vp-font-sans);
    font-size: 70px;
    line-height: 70px;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #071e55;
}

ul.pricing-list li.price-subtitle {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #6a6a6a;
}

ul.pricing-list li.price-text {
    display: block;
    text-align: left;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    margin-bottom: 5px;
}

ul.pricing-list li.price-tag a {
    color: #fff;
    background: #c52121;
    border: 1px solid #9e1a1a;
    border-radius: 5px;
    padding: 15px 30px;
    display: inline-block;
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    margin: 30px 0 5px 0;
    transition: all .3s ease-in-out;
}

ul.pricing-list li.price-tag a:hover {
    background: #9e1a1a;
}

ul.pricing-list li.price-tag-line a, .pricing-fake-button {
    color: #9e1a1a;
    background: transparent;
    border: 1px solid #9e1a1a;
    border-radius: 5px;
    padding: 15px 30px;
    display: inline-block;
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    margin: 30px 0 5px 0;
    transition: all .3s ease-in-out;
}

.pricing-fake-button {
    border: 0;
    font-size: 24px;
    margin: 5px;
    padding: 5px;
}

ul.pricing-list li.price-tag-line a.pricing-login-link, ul.pricing-list li.price-tag a.pricing-login-link {
    color: #000;
    background: transparent;
    font-size: 20px;
    line-height: 24px;
    border: 0;
    margin: 0;
    padding: 0;
}

ul.pricing-list li.price-tag-line a:hover {
    color: #fff;
    background: #9e1a1a;
    border: 1px solid #9e1a1a;
}

.pricing-list a, .pricing-list a:hover, .pricing-list a:focus, .pricing-list a:active, .pricing-list a:visited {
    text-decoration: none;
    outline: 0;
}

.ribbon {
    position: absolute;
    right: 8px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    line-height: 20px;
    transform: rotate(45deg);
    width: 100px;
    display: block;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    right: -21px;
    background-color: #9e1a1a;
}
