/*
 * Homepage (/) - reguli proprii paginii, prefix hm-.
 * Se incarca DUPA assets/css/landing.css (tokens, butoane .co-btn, hero, carduri).
 * Pagina e randata in sablonul comun (Bootstrap + style.css), deci aici si
 * neutralizam regulile globale din style.css (h1-h6 Roboto #383838, p Roboto) in
 * interiorul wrapper-ului .hm. Mobile-first, gutter 16px (.co-wrap).
 */
.hm {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* :where() = specificitate minima: bate regulile pe element din style.css/Bootstrap (incarcate
   inainte), dar lasa castig clasele din landing.css (.co-card h3, .co-lead etc.). */
:where(.hm) :is(h1, h2, h3, h4) { font-family: inherit; color: inherit; margin: 0; letter-spacing: -.02em; }
:where(.hm) p { font-family: inherit; margin: 0; }
:where(.hm) img { max-width: 100%; height: auto; }
.hm-muted { color: var(--muted); font-weight: 600; }
.hm-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--blue) !important; text-decoration: none; }
.hm-link svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s ease; }
.hm-link:hover svg { transform: translateX(3px); }

/* ---------- (1) hero + cautare ---------- */
.hm-hero { padding: 40px 0 48px; }
.hm-hero__inner { position: relative; max-width: 1000px; }
.hm-hero h1 { color: #fff; max-width: 16ch; }
.hm-hero__sub { margin-top: 18px; }
.hm-search {
    margin-top: 28px; display: grid; gap: 10px;
    background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 14px;
    box-shadow: var(--shadow-lg);
}
.hm-search__q { position: relative; }
.hm-search__q svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: #94A3B8; pointer-events: none; }
/* #slider in selector: style.css stilizeaza #search-input / .search-select / #search-btn pe id */
#slider .hm-search input[type=text], #slider .hm-search select {
    display: block; width: 100%; max-width: none; height: 52px; margin: 0;
    font: 500 16px var(--font); color: var(--text);
    padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background-color: var(--bg);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
#slider .hm-search input[type=text] { padding-left: 44px; }
#slider .hm-search select {
    padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563EB' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center / 22px;
}
#slider .hm-search input[type=text]:focus, #slider .hm-search select:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
#slider .hm-search .hm-search__btn { width: 100%; border: 0; height: 52px; text-transform: capitalize; border-radius: 12px; font-size: 17px; -webkit-appearance: none; appearance: none; }
.hm-proofs { margin-top: 22px; }
/* card "CAR-uri cu cele mai bune recenzii": pe telefon sub formular, pe desktop in coloana din dreapta */
.hm-top { margin-top: 16px; background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 20px 18px; box-shadow: var(--shadow-lg); }
.hm .hm-top__title { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--navy); }
.hm-top__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.hm-top__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.hm-top__item:first-child { border-top: 0; padding-top: 4px; }
.hm-top__rank { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; background: rgba(37, 99, 235, .08); color: var(--blue); font-weight: 800; font-size: 14px; }
.hm-top__body { min-width: 0; flex: 1 1 auto; }
.hm .hm-top__name { display: block; color: var(--text) !important; font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.hm .hm-top__name:hover { color: var(--blue) !important; }
.hm-top__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hm-top__meta b { color: var(--text); font-weight: 700; }
.hm-stars { display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1; }
.hm-stars::before {
    content: "\2605\2605\2605\2605\2605";
    background: linear-gradient(90deg, var(--amber) calc(var(--r, 0) / 5 * 100%), #CBD5E1 calc(var(--r, 0) / 5 * 100%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm .hm-top__all { margin-top: 8px; }
.hm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.hm-quick b { color: #fff; font-weight: 700; width: 100%; }
.hm-quick a { color: #E2E8F0 !important; text-decoration: none; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); line-height: 1.3; }
.hm-quick a:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }
.hm-disclaimer { margin-top: 18px !important; font-size: 13px; line-height: 1.5; color: #94A3B8; max-width: 760px; }

/* ---------- (2) cifre ---------- */
.hm-trust__inner { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; text-align: center; }
.hm-trust .co-trust__item b { font-size: 26px; }
.hm-trust .co-trust__item span { display: block; font-size: 13px; line-height: 1.35; margin-top: 4px; }

/* ---------- (3) avantaje ---------- */
.hm-features__grid { display: grid; gap: 14px; }
.hm-card { display: flex; flex-direction: column; align-items: flex-start; }
.hm-card p { flex: 1 1 auto; }
.hm-card--car { display: flex; flex-direction: column; align-items: flex-start; }
.hm-card__list { margin-top: 16px; gap: 14px; }
.hm-card__list li { font-size: 15px; line-height: 1.55; color: #CBD5E1; }
.hm-card__list b { color: #fff; }
.hm-card--car .co-check { fill: var(--amber); }
.hm-card__cta { margin-top: 22px; white-space: normal; text-align: center; }

/* ---------- (4) software ---------- */
.hm-soft { padding-top: 0; }
.hm-soft__card {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
    padding: 32px 20px; border-radius: var(--r-lg); color: #fff;
    background: radial-gradient(700px 420px at 100% 100%, rgba(37, 99, 235, .45), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-2));
    box-shadow: var(--shadow);
}
.hm-soft__card > * { min-width: 0; }
.hm-soft__card h2 { color: #fff; }
.hm-soft__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hm-soft__ctas .co-btn { white-space: normal; text-align: center; }
.hm-soft__new { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #E2E8F0 !important; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.35; }
.hm-soft__new:hover { color: #fff !important; }
.hm-soft__new svg { width: 16px; height: 16px; flex: 0 0 16px; fill: var(--amber); }
.hm-soft__badge { flex: 0 0 auto; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #1F1300; background: var(--amber); padding: 3px 10px; border-radius: 999px; }
.hm-soft__media { position: relative; padding: 0 0 40px; }
.hm-soft__media .co-hero__glow { width: 300px; height: 300px; }
.hm-soft__laptop { position: relative; z-index: 1; }
.hm-soft__laptop .device__screen img { object-fit: cover; object-position: top left; }
.hm-soft .device--phone.hm-soft__phone { position: absolute; z-index: 2; right: -6px; bottom: 0; width: 118px; padding: 6px; border-radius: 24px; }
.hm-soft .hm-soft__phone::after { inset: 6px; border-radius: 19px; }
.hm-soft .hm-soft__phone .device__screen { border-radius: 19px; }
.hm-soft .hm-soft__phone .device__notch { top: 11px; height: 11px; }

/* ---------- (5) despre ---------- */
.hm-about { background: #fff; }
.hm-about .co-lead + .co-lead { margin-top: 14px; }
.hm-about__media { position: relative; max-width: 512px; margin: 0 auto; width: 100%; }
.hm-about__media img { display: block; width: 100%; }
.hm .hm-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
    background: var(--amber); color: #1F1300 !important; line-height: 1;
    box-shadow: 0 0 0 10px rgba(245, 158, 11, .22), 0 12px 30px rgba(2, 8, 23, .25);
}
.hm .hm-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.hm .hm-play:hover { transform: translate(-50%, -50%) scale(1.06); }

/* ---------- (6) contact (markup din private/pages/contact/body.inc.php) ---------- */
.hm-contact #contact {
    padding: 64px 0;
    background: radial-gradient(700px 420px at 0% 100%, rgba(37, 99, 235, .35), transparent 60%), var(--navy);
    color: #fff;
}
.hm-contact #contact > .container { max-width: 760px; padding: 0 16px; }
.hm-contact #contact .row { margin-left: 0; margin-right: 0; }
.hm-contact #contact [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
.hm-contact .section-title { margin-bottom: 28px; text-align: left; }
.hm-contact .section-title h2 { color: #fff; font-size: 30px; line-height: 1.1; font-weight: 800; margin: 0 0 14px; text-transform: none; }
.hm-contact .section-title p { color: #CBD5E1; font-size: 17px; line-height: 1.6; }
.hm-contact .question-image { display: none; }
.hm-contact .contact-form-area { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 24px 18px; box-shadow: var(--shadow-lg); }
.hm-contact .contact-form-area .form-group { margin-bottom: 14px; padding-left: 0; padding-right: 0; }
.hm-contact .contact-form-area .form-control {
    width: 100%; height: auto; font: 500 16px var(--font); color: var(--text);
    padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background-color: var(--bg);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.hm-contact #contact .contact-form-area select.form-control {
    padding: 12px 40px 12px 14px; -webkit-appearance: none; appearance: none;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563EB' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center / 22px;
}
.hm-contact .contact-form-area textarea.form-control { min-height: 120px; resize: vertical; }
.hm-contact .contact-form-area .form-control:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.hm-contact .contact-form-area .submit-form .button {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    padding: 15px 26px; border-radius: 999px; border: 0;
    font: 700 17px/1.2 var(--font); text-transform: none;
    background: var(--amber); color: #1F1300; box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
}
.hm-contact .contact-form-area .submit-form .button:hover { background: #FBBF24; color: #1F1300; }

/* ===================== >= 576px ===================== */
@media (min-width: 576px) {
    .hm-search { grid-template-columns: 1fr 1fr; }
    .hm-search__q, #slider .hm-search .hm-search__btn { grid-column: 1 / -1; }
    .hm-quick b { width: auto; margin-right: 4px; }
    .hm-features__grid { grid-template-columns: 1fr 1fr; }
    .hm-card--car { grid-column: 1 / -1; }
    .hm-soft__ctas { flex-direction: row; flex-wrap: wrap; }
    .hm-soft .device--phone.hm-soft__phone { width: 150px; right: 0; }
    .hm-contact .contact-form-area { padding: 32px 28px; }
}
/* ===================== >= 768px ===================== */
@media (min-width: 768px) {
    .hm-hero { padding: 64px 0 72px; }
    .hm-search { grid-template-columns: 1.7fr 1fr 1fr auto; padding: 10px; border-radius: 20px; }
    .hm-search__q, #slider .hm-search .hm-search__btn { grid-column: auto; }
    #slider .hm-search .hm-search__btn { width: auto; padding: 0 30px; }
    .hm-trust .co-trust__item b { font-size: 38px; }
    .hm-trust .co-trust__item span { font-size: 14px; }
    .hm-soft__card { padding: 48px 40px; }
    .hm-contact #contact { padding: 96px 0; }
    .hm-contact .section-title h2 { font-size: 40px; }
}
/* ===================== >= 1024px ===================== */
@media (min-width: 1024px) {
    .hm-hero { padding: 80px 0 88px; }
    /* hero pe doua coloane: stanga cautarea si restul, dreapta cardul cu recenzii */
    .hm-hero__inner { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 48px; align-items: start; }
    .hm-hero__inner > * { grid-column: 1; }
    .hm-hero__inner > .co-eyebrow { justify-self: start; }
    .hm-hero__inner > .hm-top { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin-top: 0; padding: 24px; }
    #slider .hm-search { grid-template-columns: 1fr 1fr auto; }
    .hm-search__q { grid-column: 1 / -1; }
    .hm-proofs { grid-template-columns: repeat(2, auto); gap: 10px 28px; }
    .hm-features__grid { grid-template-columns: 1.25fr 1fr; gap: 18px; }
    .hm-card--car { grid-column: auto; grid-row: span 2; padding: 30px; }
    .hm-soft__card { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; padding: 56px; }
    .hm-soft__media { padding: 20px 20px 40px 0; }
    .hm-soft .device--phone.hm-soft__phone { width: 160px; right: -10px; bottom: 0; }
    .hm-about__split { grid-template-columns: 1.1fr .9fr; }
}
