/*
 * HitSite — styles for the page-builder blocks.
 * Loaded after site.css on the public site and inside the editor preview.
 * Every rule is scoped under .ht-block so the theme's own pages keep their look.
 */

/* ---------------------------------------------------------------- shell */

.ht-block { position: relative; }
.ht-block::after { content: ""; display: block; clear: both; }

/* The theme hard-codes 1170px (and 600/440/300px on small screens); inside a
   builder block the container follows the site width setting instead. */
.ht-block > .content_wrap,
.ht-block > .content_container,
.ht-block .ht-section-inner.content_wrap {
    width: 100% !important;
    max-width: var(--ht-container, 1170px);
    margin-inline: auto;
    padding-inline: 18px;
}
.ht-block .ht-block > .content_wrap { padding-inline: 0; }

.ht-wrap-wide { max-width: 1600px !important; }
.ht-wrap-full { max-width: none !important; padding-inline: 0 !important; }

/* A columns widget dropped straight on the canvas still needs the site gutter. */
.ht-block.ht-b-columns > .columns_wrap {
    width: 100%;
    max-width: var(--ht-container, 1170px);
    margin-inline: auto;
    padding-inline: 18px;
    box-sizing: border-box;
}
.ht-block .ht-block.ht-b-columns > .columns_wrap { max-width: none; padding-inline: 0; }

.ht-anchor { display: block; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------- columns */

.ht-block .columns_wrap { margin: 0; }
.ht-block .columns_wrap::before,
.ht-block .columns_wrap::after { content: none; display: none; }

/* Equal-height grids used by features, fleet, prices, testimonials and posts. */
.ht-block .columns_wrap[class*="ht-cols-"] {
    display: grid;
    gap: var(--ht-gap, 30px);
}
.ht-block .columns_wrap > .column {
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.ht-block .columns_wrap[class*="ht-cols-"] > .column {
    display: flex;
    flex-direction: column;
}
.ht-block .columns_wrap.ht-cols-1 { grid-template-columns: minmax(0, 1fr); }
.ht-block .columns_wrap.ht-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ht-block .columns_wrap.ht-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-block .columns_wrap.ht-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* The "columns" widget keeps free widths (50/33/25/66/75) and always fills the row. */
.ht-columns { display: flex; flex-wrap: wrap; gap: var(--ht-gap, 30px); }
.ht-columns > .column-1_1 { flex: 1 0 100%; }
.ht-columns > .column-1_2 { flex: 50 1 0; }
.ht-columns > .column-1_3 { flex: 33.3333 1 0; }
.ht-columns > .column-1_4 { flex: 25 1 0; }
.ht-columns > .column-2_3 { flex: 66.6667 1 0; }
.ht-columns > .column-3_4 { flex: 75 1 0; }

/* ------------------------------------------------------------- headings */

.ht-b-heading { margin: 18px 0 10px; }

.ht-heading { margin: 0; }
.ht-heading-title {
    margin: 0 0 .35em;
    font-family: var(--ht-font-head);
    font-size: clamp(1.65rem, 2.3vw, 2.55rem);
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--ht-secondary);
}
.ht-heading-title:last-child { margin-bottom: 0; }
.ht-heading-title a { color: inherit; text-decoration: none; }
.ht-heading-title a:hover { color: var(--ht-primary); }
.ht-heading-sub { color: var(--ht-muted); font-size: 1.06em; line-height: 1.7; }
.ht-heading-sub p:last-child { margin-bottom: 0; }

.ht-align-left { text-align: left; }
.ht-align-center { text-align: center; }
.ht-align-right { text-align: right; }

/* ----------------------------------------------------------------- text */

.ht-b-text { margin: 0 0 16px; }

.ht-text { line-height: 1.8; }
.ht-text > :first-child { margin-top: 0; }
.ht-text > :last-child { margin-bottom: 0; }
.ht-text-narrow { max-width: 780px; margin-inline: auto; }
.ht-text a { text-decoration: underline; text-underline-offset: 3px; }
.ht-text h1, .ht-text h2, .ht-text h3, .ht-text h4 {
    margin: 1.2em 0 .45em;
    line-height: 1.25;
}
.ht-text ul, .ht-text ol { padding-inline-start: 1.35em; }
.ht-text li { margin-bottom: .3em; }
.ht-text blockquote {
    margin: 1.4em 0;
    padding: .2em 0 .2em 1.1em;
    border-inline-start: 3px solid var(--ht-primary);
    color: var(--ht-secondary);
    font-style: italic;
}
.ht-text img { max-width: 100%; height: auto; }

/* -------------------------------------------------------------- buttons */

.ht-b-button { margin: 4px 0 16px; }

.ht-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75em; }
.ht-buttons.ht-align-left { justify-content: flex-start; }
.ht-buttons.ht-align-center { justify-content: center; }
.ht-buttons.ht-align-right { justify-content: flex-end; }
.ht-buttons .ht-btn { text-decoration: none; }
.ht-buttons .ht-btn .ht-i { font-size: .95em; }

/* ---------------------------------------------------------------- image */

.ht-b-image { margin: 6px 0 16px; }

.ht-image {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    line-height: 0;
}
.ht-image img { display: block; max-width: 100%; height: auto; }
.ht-image a { display: block; }
.ht-shape-rounded img { border-radius: 14px; }
.ht-shape-circle img,
.ht-img-circle { border-radius: 50%; }
.ht-shape-shadow img { box-shadow: 0 18px 44px rgba(20, 30, 45, .18); }
.ht-shape-circle { width: min(100%, 380px); }
.ht-img-caption {
    margin-top: .6em;
    font-size: .85em;
    line-height: 1.5;
    color: var(--ht-muted);
}
.ht-empty-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    border: 1px dashed var(--ht-line);
    border-radius: 10px;
    background: var(--ht-bg-alt);
    color: var(--ht-muted);
}

/* ---------------------------------------------------------------- video */

.ht-b-video { margin: 6px 0 16px; }

.ht-video { position: relative; max-width: 100%; overflow: hidden; border-radius: var(--ht-radius); background: #0d1621; }
.ht-video iframe, .ht-video video { display: block; width: 100%; border: 0; }
.ht-video iframe { position: absolute; inset: 0; height: 100%; }
.ht-video video { height: auto; }
.ht-ratio-16-9 { aspect-ratio: 16 / 9; }
.ht-ratio-4-3 { aspect-ratio: 4 / 3; }
.ht-ratio-21-9 { aspect-ratio: 21 / 9; }
.ht-ratio-1-1 { aspect-ratio: 1 / 1; }

/* -------------------------------------------------------------- icon box */

.ht-b-iconbox { margin: 0 0 16px; }

.ht-iconbox-link { display: block; color: inherit; text-decoration: none; }
.ht-iconbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: .85em;
    border-radius: 16px;
    background: var(--ht-bg-alt);
    color: var(--ht-primary);
    font-size: 1.45em;
}
.ht-iconbox-title { margin: 0 0 .35em; font-size: 1.15em; }
.ht-iconbox-text { color: var(--ht-muted); font-size: .95em; line-height: 1.7; }
.ht-iconbox-text > :last-child { margin-bottom: 0; }
.ht-iconbox-link:hover .ht-iconbox-title { color: var(--ht-primary); }

/* -------------------------------------------------------------- features */

.ht-b-features { margin: 8px 0 18px; }

.ht-features .ht-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6em 1.4em;
    border: 1px solid var(--ht-line);
    border-radius: 18px;
    background: var(--ht-bg, #fff);
    box-shadow: 0 6px 20px rgba(20, 30, 45, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ht-features .ht-feature:hover {
    transform: translateY(-4px);
    border-color: var(--ht-primary);
    box-shadow: var(--ht-shadow, 0 10px 30px rgba(20, 30, 45, .1));
}
.ht-features .sc_services_item_icon.ht-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1em;
    border-radius: 16px;
    background: var(--ht-bg-alt);
    color: var(--ht-primary);
    font-size: 1.6em;
}
.ht-features .sc_services_item_title {
    margin: 0 0 .45em;
    font-size: 1.12em;
    color: var(--ht-secondary);
}
.ht-features .sc_services_item_text { color: var(--ht-muted); font-size: .94em; line-height: 1.7; }
.ht-features .sc_services_item_text > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ testimonials */

.ht-b-testimonials { margin: 8px 0 18px; }

.ht-testimonials .ht-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9em;
    height: 100%;
    margin: 0;
    padding: 1.7em 1.5em;
    border: 1px solid var(--ht-line);
    border-radius: 18px;
    background: var(--ht-bg, #fff);
    box-shadow: 0 6px 20px rgba(20, 30, 45, .05);
}
.ht-testimonials .ht-testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: .1em;
    inset-inline-end: .35em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6em;
    line-height: 1;
    color: var(--ht-primary);
    opacity: .18;
    pointer-events: none;
}
.ht-testimonials .sc_testimonials_item_content {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: .98em;
    font-style: normal;
    line-height: 1.8;
    color: var(--ht-text);
}
.ht-testimonials .sc_testimonials_item_content > :last-child { margin-bottom: 0; }
.ht-stars { display: flex; gap: .15em; color: var(--ht-primary); font-size: .95em; }
.ht-stars .icon-star-empty { opacity: .3; }
.ht-testimonials .sc_testimonials_item_author {
    display: flex;
    align-items: center;
    gap: .7em;
    margin-top: auto;
    padding-top: 1em;
    border-top: 1px dashed var(--ht-line);
}
.ht-testimonials .sc_testimonials_item_author_data {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.ht-testimonials .sc_testimonials_item_author_title {
    display: block;
    font-weight: 700;
    color: var(--ht-secondary);
}
.ht-testimonials .sc_testimonials_item_author_subtitle {
    display: block;
    font-size: .85em;
    color: var(--ht-muted);
}

/* ------------------------------------------------------------- price list */

.ht-b-price_list { margin: 8px 0 18px; }

.ht-price-heading { margin: 0 0 1.2em; text-align: center; }
.ht-price-list .ht-price-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.8em 1.5em;
    border: 1px solid var(--ht-line);
    border-radius: 20px;
    background: var(--ht-bg, #fff);
    box-shadow: 0 8px 24px rgba(20, 30, 45, .05);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ht-price-list .ht-price-card:hover {
    transform: translateY(-4px);
    border-color: var(--ht-primary);
    box-shadow: var(--ht-shadow, 0 10px 30px rgba(20, 30, 45, .1));
}
.ht-price-list .sc_price_title { margin: 0 0 .2em; font-size: 1.25em; }
.ht-price-list .sc_price_subtitle { color: var(--ht-muted); font-size: .9em; line-height: 1.6; }
.ht-price-list .sc_price_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12em;
    margin: .8em 0 1.1em;
}
.ht-price-list .sc_price_value {
    font-family: var(--ht-font-head);
    font-size: 2.35em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ht-secondary);
}
.ht-price-list .sc_price_second { color: var(--ht-muted); font-size: .95em; }
.ht-price-list .sc_price_label {
    font-size: .78em;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ht-muted);
}
.ht-price-list .sc_price_details {
    display: grid;
    gap: .45em;
    margin: 0 0 1.3em;
    padding: .95em 0 0;
    border-top: 1px dashed var(--ht-line);
    list-style: none;
    text-align: start;
    font-size: .92em;
}
.ht-price-list .sc_price_details li { display: flex; align-items: baseline; gap: .55em; }
.ht-price-list .sc_price_details li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ht-primary);
}
.ht-price-list .sc_price_link { margin-top: auto; align-self: center; }

/* ----------------------------------------------------------------- fleet */

.ht-b-fleet { margin: 8px 0 18px; }

.ht-fleet .sc_cars_item.ht-fleet-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ht-line);
    border-radius: 18px;
    background: var(--ht-bg, #fff);
    box-shadow: 0 8px 24px rgba(20, 30, 45, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ht-fleet .sc_cars_item.ht-fleet-card:hover {
    transform: translateY(-4px);
    border-color: var(--ht-primary);
    box-shadow: var(--ht-shadow, 0 10px 30px rgba(20, 30, 45, .1));
}
.ht-fleet .sc_cars_item_thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ht-bg-alt);
    margin: 0;
}
.ht-fleet .sc_cars_item_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.ht-fleet .ht-fleet-card:hover .sc_cars_item_thumb img { transform: scale(1.04); }
.ht-fleet .ht-fleet-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3em;
    color: var(--ht-muted);
}
.ht-fleet .sc_cars_item_header { padding: 1.2em 1.35em 0; }
.ht-fleet .sc_cars_item_type { margin: 0 0 .3em; font-size: 1.2em; }
.ht-fleet .sc_cars_content { color: var(--ht-muted); font-size: .92em; line-height: 1.6; }
.ht-fleet .sc_cars_item_params {
    display: grid;
    gap: .5em;
    margin: 1.1em 1.35em 0;
    padding: .95em 0 0;
    border-top: 1px dashed var(--ht-line);
    list-style: none;
}
.ht-fleet .sc_cars_item_param {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
    font-size: .92em;
}
.ht-fleet .sc_cars_item_param_label { color: var(--ht-muted); }
.ht-fleet .sc_cars_item_param_text { font-weight: 700; color: var(--ht-secondary); }
.ht-fleet .sc_cars_item_footer { margin-top: auto; padding: 1.3em 1.35em; }
.ht-fleet .sc_cars_item_button { width: 100%; text-align: center; justify-content: center; }

/* ------------------------------------------------------------------ blog */

.ht-b-blogger { margin: 8px 0 18px; }
.ht-blogger .ht-post-card { height: 100%; }

/* ----------------------------------------------------------------- forms */

.ht-b-contact_form { margin: 0 0 16px; }

.ht-form-title { margin: 0 0 1em; font-size: 1.35em; }
.ht-contact-form .ht-form { margin: 0; }
.ht-contact-form .ht-field:last-of-type { margin-bottom: 0; }
.ht-contact-form .ht-field-actions { margin: 1.1em 0 .2em; }
.ht-contact-form .ht-form-status:empty { display: none; }
.ht-contact-form .input-text,
.ht-newsletter .input-text { border-radius: var(--ht-radius); }

.ht-b-newsletter { margin: 0 0 16px; }

.ht-newsletter { max-width: 560px; }
.ht-nl-label {
    display: block;
    margin-bottom: .45em;
    font-weight: 600;
    color: var(--ht-secondary);
}
.ht-nl-row { display: flex; flex-wrap: wrap; gap: .6em; }
.ht-nl-row .input-text { flex: 1 1 220px; min-width: 0; margin: 0; }
.ht-nl-row .theme_button { flex: 0 0 auto; }
.ht-newsletter .ht-form-status:empty { display: none; }

/* --------------------------------------------------------------- divider */

.ht-b-divider { margin: 18px 0; }

.ht-divider {
    width: 100%;
    text-align: center;
    line-height: 0;
}
.ht-divider-line {
    display: inline-block;
    vertical-align: middle;
    border-top: 1px solid var(--ht-line);
}
.ht-divider-iconed .ht-divider-icon {
    display: inline-block;
    margin-inline-end: .7em;
    vertical-align: middle;
    color: var(--ht-primary);
    font-size: 1.15em;
    line-height: 1;
}

/* ---------------------------------------------------------------- spacer */

.ht-spacer { width: 100%; }

/* --------------------------------------------------------------- alerts */

.ht-b-alert { margin: 0 0 14px; }

/* ------------------------------------------------------- builder helpers */

.ht-block-error {
    padding: 12px 14px;
    border: 1px dashed #d64545;
    border-radius: 8px;
    background: #fdeeec;
    color: #a03225;
    font-size: .9em;
}
.ht-builder-empty-start {
    max-width: 460px;
    margin: 70px auto;
    padding: 34px 26px;
    border: 2px dashed #c9d5e2;
    border-radius: 16px;
    text-align: center;
    color: #8b97a6;
    background: #fbfcfe;
}
.ht-builder-empty-start .ht-i { display: block; font-size: 2em; margin-bottom: 10px; color: #b9c5d4; }
.ht-builder-empty-start strong { display: block; color: #55606d; margin-bottom: 4px; }
.ht-builder-empty-start p { margin: 0; font-size: .92em; }

/* ------------------------------------------------------------ animations */

.ht-anim { animation-fill-mode: both; animation-duration: .8s; animation-timing-function: ease-out; }
@keyframes htFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes htFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ht-anim-htFadeUp { animation-name: htFadeUp; }
.ht-anim-htFadeIn { animation-name: htFadeIn; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 991px) {
    .ht-block .columns_wrap.ht-cols-3,
    .ht-block .columns_wrap.ht-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ht-price-list .ht-price-card,
    .ht-fleet .sc_cars_item.ht-fleet-card,
    .ht-features .ht-feature { padding: 1.35em 1.2em; }
}

@media (max-width: 767px) {
    .ht-columns > .column { flex: 0 0 100%; max-width: 100%; }
    .ht-b-heading { margin-top: 12px; }
}

@media (max-width: 640px) {
    .ht-block .columns_wrap[class*="ht-cols-"] { grid-template-columns: minmax(0, 1fr); }
    .ht-block > .content_wrap { padding-inline: 14px; }
    .ht-heading-title { font-size: clamp(1.45rem, 6vw, 1.9rem); }
    .ht-nl-row .theme_button { width: 100%; }
    .ht-fleet .sc_cars_item_footer { padding: 1.1em; }
}

@media (prefers-reduced-motion: reduce) {
    .ht-anim { animation: none !important; }
    .ht-features .ht-feature,
    .ht-price-list .ht-price-card,
    .ht-fleet .sc_cars_item.ht-fleet-card { transition: none; }
}
