/* Home page - templates/front/index.html.twig and templates/front/home */
.hp {
    --hp-red: #e3353b;
    --hp-red-dark: #c9252b;
    --hp-navy: #0f2138;
    --hp-ink: #1b3140;
    --hp-text: #46566a;
    --hp-muted: #5f6f82;
    --hp-light: #f0f4f6;
    --hp-line: #d8e0e7;
    --hp-script: "Caveat", "Segoe Print", cursive;
    font-family: "Manrope", "Poppins", Arial, sans-serif;
    color: var(--hp-text);
    line-height: 1.5;
}
.hp * { box-sizing: border-box; }
.hp ul, .hp ol { margin: 0; padding: 0; list-style: none; }
.hp p { margin: 0; }
.hp img { max-width: 100%; }
.hp a { text-decoration: none; }

.hp-container { width: 100%; max-width: 1290px; margin: 0 auto; padding: 0 24px; }
.hp-section { padding: 56px 0; }
.hp-section--light { background: var(--hp-light); }
.hp-red { color: var(--hp-red); }

.hp-kicker { margin-bottom: 2px !important; color: var(--hp-red); font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; line-height: 1.2; }
.hp-title { margin: 0 0 14px; color: var(--hp-navy); font-family: inherit; font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.hp-title--xl { font-size: clamp(32px, 3.1vw, 44px); }
.hp-text { max-width: 480px; margin-bottom: 22px !important; color: var(--hp-text); font-size: 16.5px; line-height: 1.55; }

/* Buttons */
.hp-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 28px; border: 2px solid transparent; border-radius: 999px; font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn .fa-arrow-right { font-size: 14px; }
.hp-btn--primary { background: var(--hp-red); color: #fff !important; box-shadow: 0 8px 18px rgba(227, 53, 59, .25); }
.hp-btn--primary:hover { background: var(--hp-red-dark); }
.hp-btn--outline { border-color: var(--hp-red); background: #fff; color: var(--hp-red) !important; }
.hp-btn--outline:hover { background: #fdeced; }
.hp-btn--glass { border-color: rgba(255, 255, 255, .45); background: rgba(15, 33, 56, .55); color: #fff !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hp-btn--glass:hover { background: rgba(15, 33, 56, .72); }
.hp-btn__play { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: -12px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 11px; }
.hp-btn--navy-outline { border-color: #3d5a80; background: #fff; color: var(--hp-navy) !important; }
.hp-btn--navy-outline:hover { background: #eef2f7; }

/* App Store / Google Play badges */
.hp-stores { display: flex; flex-wrap: wrap; gap: 14px; }
.hp-store { display: inline-flex; align-items: center; gap: 9px; min-width: 150px; padding: 6px 16px 7px 12px; border: 1px solid #a6a6a6; border-radius: 9px; background: #000; color: #fff !important; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; line-height: 1.05; transition: background-color .15s; }
.hp-store:hover { background: #1c1c1c; }
.hp-store i { font-size: 27px; }
.hp-store small { display: block; font-size: 10.5px; letter-spacing: .01em; }
.hp-store strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* Hero */
.hp-hero { position: relative; overflow: hidden; background: #e8eff5; }
.hp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
.hp-hero .hp-container { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(500px, 34vw, 640px); padding-top: 40px; padding-bottom: 40px; }
.hp-hero__content { max-width: 720px; }
.hp-hero__kicker { margin-bottom: 6px !important; color: var(--hp-navy); font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.hp-hero__title { margin: 0 0 16px; color: var(--hp-navy); font-family: inherit; font-size: clamp(28px, 2.75vw, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; }
.hp-hero__highlight { display: block; margin-bottom: 2px; color: var(--hp-red); font-size: 1.36em; }
.hp-hero__text { max-width: 540px; margin-bottom: 22px !important; color: #18263a; font-size: 17px; font-weight: 500; line-height: 1.45; }
.hp-hero .hp-stores { margin-bottom: 24px; }

/* Vision */
.hp-vision { padding: 44px 0; }
.hp-vision__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: 48px; }
.hp-vision .hp-text { margin-bottom: 16px !important; }
.hp-values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-left: 48px !important; border-left: 1px solid var(--hp-line); }
.hp-values__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-values__icon { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border: 2px solid var(--hp-red); border-radius: 50%; color: var(--hp-red); font-size: 34px; }
.hp-values__label { margin-top: 14px; color: var(--hp-navy); font-size: 14.5px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }

/* Lexus Track */
.hp-app { padding: 44px 0; }
.hp-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 36px; }
.hp-app__grid--with-visual { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, .85fr); }
.hp-app .hp-title { font-size: clamp(26px, 2.45vw, 35px); }
.hp-app__visual img { display: block; width: 100%; height: auto; }
.hp-features { display: grid; gap: 26px; }
.hp-features__item { display: flex; align-items: center; gap: 18px; }
.hp-features__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #221f20; color: #fff; font-size: 21px; }
.hp-features__item strong { display: block; color: var(--hp-navy); font-size: 18px; font-weight: 800; line-height: 1.25; }
.hp-features__item span span, .hp-features__item strong + span { display: block; color: var(--hp-muted); font-size: 15px; }

/* Markets */
.hp-markets { padding: 44px 0 52px; }
.hp-markets__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.hp-markets__head .hp-title { margin-bottom: 8px; }
.hp-markets__head .hp-text { max-width: 560px; margin-bottom: 0 !important; }
.hp-markets__head .hp-btn { flex: none; margin-bottom: 10px; }
.hp-markets__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.hp-market { --hp-card: var(--hp-red); display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--hp-card); border-radius: 10px; background: #fff; color: inherit; transition: transform .2s, box-shadow .2s; }
a.hp-market:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15, 33, 56, .14); }
.hp-market__photo { display: block; aspect-ratio: 21 / 10; overflow: hidden; background: var(--hp-light); }
.hp-market__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.hp-market:hover .hp-market__photo img { transform: scale(1.04); }
.hp-market__body { position: relative; display: block; flex: 1; min-height: 128px; padding: 14px 14px 18px 72px; }
.hp-market__icon { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hp-card); color: #fff; font-size: 19px; }
.hp-market__title { display: block; margin-top: 4px; color: var(--hp-navy); font-size: 21px; font-weight: 800; line-height: 1.2; }
.hp-market__text { display: block; margin-top: 4px; color: var(--hp-muted); font-size: 15px; line-height: 1.45; }
.hp-market__arrow { position: absolute; bottom: 16px; left: 20px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hp-card); color: #fff; font-size: 13px; transition: transform .2s; }
a.hp-market:hover .hp-market__arrow { transform: translateX(3px); }

/* Customer approach */
.hp-approach { padding: 40px 0; }
.hp-approach__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 40px; }
.hp-approach .hp-text { margin-bottom: 0 !important; font-size: 15.5px; }
.hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.hp-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-steps__item:not(:last-child)::after { content: ""; position: absolute; top: 26px; right: -16px; width: 9px; height: 9px; border-top: 2px solid var(--hp-navy); border-right: 2px solid var(--hp-navy); transform: rotate(45deg); }
.hp-steps__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--hp-red); color: #fff; font-size: 26px; box-shadow: 0 8px 18px rgba(227, 53, 59, .25); }
.hp-steps__item strong { margin-top: 12px; color: var(--hp-navy); font-size: 15.5px; font-weight: 800; text-transform: uppercase; }
.hp-steps__item span:not(.hp-steps__icon) { max-width: 140px; margin-top: 2px; color: var(--hp-muted); font-size: 14.5px; line-height: 1.4; }

/* Key figures */
.hp-stats { padding: 44px 0; background: var(--hp-ink); color: #fff; }
.hp-stats__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: center; gap: 48px; }
.hp-stats__title { margin: 0 0 14px; color: #fff; font-family: inherit; font-weight: 800; line-height: 1.05; }
.hp-stats__title-main { display: block; font-size: clamp(34px, 3.1vw, 46px); }
.hp-stats__title-sub { display: block; font-size: clamp(24px, 2.2vw, 32px); }
.hp-stats__text { color: #fff; font-size: 16px; line-height: 1.5; }
.hp-stats__list { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding-left: 0; }
.hp-stats__item { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-left: 1px solid rgba(255, 255, 255, .45); text-align: center; }
.hp-stats__icon { margin-bottom: 10px; font-size: 36px; line-height: 1; }
.hp-stats__item strong { color: var(--hp-red); font-size: clamp(32px, 3vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.hp-stats__item span:not(.hp-stats__icon) { margin-top: 4px; font-size: 17px; font-weight: 500; }

/* Charter + mascot */
.hp-charter { padding: 40px 0 0; overflow: hidden; }
.hp-charter__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 32px; }
.hp-charter--with-mascot .hp-charter__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 430px); }
.hp-charter__main { padding-bottom: 48px; }
.hp-charter__list { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 6px 0 26px !important; }
.hp-charter__list li { display: inline-flex; align-items: center; gap: 10px; color: var(--hp-navy); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.hp-charter__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--hp-red); border-radius: 50%; color: var(--hp-red); font-size: 14px; }
.hp-charter__signature { position: relative; display: inline-block; margin-left: clamp(0px, 8vw, 110px) !important; padding-bottom: 12px; color: var(--hp-navy); font-family: var(--hp-script); font-size: clamp(26px, 2.3vw, 33px); font-weight: 600; line-height: 1.1; transform: rotate(-2deg); }
.hp-swoosh { position: absolute; color: var(--hp-red); pointer-events: none; }
.hp-charter__swoosh { left: -2%; bottom: -10px; width: 104%; height: 16px; }
.hp-charter__mascot { position: relative; display: flex; align-items: flex-end; }
.hp-charter__mascot img { display: block; flex: none; width: auto; max-width: 60%; max-height: 280px; }
.hp-charter__bubble { position: relative; align-self: center; flex: 1; min-width: 160px; margin: 0 0 40px 4px !important; padding-bottom: 14px; color: var(--hp-navy); font-family: var(--hp-script); font-size: clamp(24px, 2.2vw, 31px); font-weight: 600; line-height: 1.05; text-align: center; transform: rotate(-9deg); }
.hp-charter__bubble-swoosh { right: 0; bottom: -4px; width: 82%; height: 14px; }

/* Customer service */
/* three centered rows: intro, phone + buttons, commitments */
.hp-support { padding: 48px 0; }
.hp-support__grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 26px; text-align: center; }
.hp-support__grid > * { width: 100%; max-width: 780px; }
.hp .hp-support__grid > .hp-support__contact { display: flex; flex-direction: column; align-items: center; max-width: 1120px; padding: 34px 40px; border-radius: 999px; background: #fff; }
.hp-support .hp-buttons { justify-content: center; }
.hp-support .hp-kicker { font-size: 17px; }
.hp-support .hp-title { margin-bottom: 6px; font-size: clamp(25px, 2.2vw, 32px); }
.hp-support__text { color: var(--hp-muted); font-size: 15.5px; }
.hp-support__phone { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 18px; color: var(--hp-navy) !important; text-align: left; }
.hp-support__phone-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hp-red); color: #fff; font-size: 21px; }
.hp-support__phone strong { display: block; font-size: 20px; font-weight: 800; }
.hp-support__phone small { display: block; color: var(--hp-text); font-size: 14.5px; }
.hp-support .hp-btn { min-height: 46px; padding: 10px 20px; border-radius: 10px; font-size: 15px; }
.hp-support__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hp-support__list li { display: flex; flex-direction: column; align-items: center; color: var(--hp-navy); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
.hp-support__icon { margin-bottom: 10px; color: var(--hp-ink); font-size: 32px; line-height: 1; }

/* Video modal */
.hp-video-modal .modal-content { border: 0; border-radius: 12px; background: #000; overflow: visible; }
.hp-video-modal .btn-close { position: absolute; top: -40px; right: 0; opacity: .9; }
.hp-video-modal iframe { border: 0; border-radius: 12px; }

@media (min-width: 1200px) {
    .hp-charter__signature { white-space: nowrap; }
}

/* Responsive */
@media (max-width: 1199px) {
    .hp-vision__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hp-values { padding-left: 0 !important; border-left: 0; }
    .hp-app__grid--with-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .hp-app__grid--with-visual .hp-features { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-markets__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-approach__grid, .hp-stats__grid { grid-template-columns: minmax(0, 1fr); }
    .hp-stats__list .hp-stats__item:first-child { border-left: 0; }
}

@media (max-width: 991px) {
    .hp-hero { display: flex; flex-direction: column; background: #f4f8fb; }
    .hp-hero__bg { position: static; order: 2; height: auto; aspect-ratio: 16 / 9; object-position: 84% center; }
    .hp-hero .hp-container { min-height: 0; padding-top: 36px; padding-bottom: 28px; }
    .hp-values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .hp-app__grid--with-visual, .hp-app__grid { grid-template-columns: minmax(0, 1fr); }
    .hp-app__visual { max-width: 560px; }
    .hp-markets__head { flex-direction: column; align-items: flex-start; }
    .hp-markets__head .hp-btn { margin-bottom: 0; }
    .hp-charter--with-mascot .hp-charter__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hp-charter__main { padding-bottom: 8px; }
    .hp-charter__signature { margin-left: 0 !important; }
    .hp-charter__mascot { justify-content: center; }
}

@media (max-width: 767px) {
    .hp-container { padding: 0 16px; }
    .hp-section, .hp-vision, .hp-app, .hp-markets, .hp-approach, .hp-stats { padding: 40px 0; }
    .hp-charter { padding-bottom: 0; }
    .hp-support { padding: 36px 0; }
    .hp .hp-support__grid > .hp-support__contact { padding: 28px 20px; border-radius: 24px; }
    .hp-hero__text { font-size: 16px; }
    .hp-values__icon { width: 72px; height: 72px; font-size: 28px; }
    .hp-values__label { font-size: 13px; }
    .hp-app__grid--with-visual .hp-features { grid-template-columns: minmax(0, 1fr); }
    .hp-markets__grid { grid-auto-columns: minmax(250px, 78%); grid-auto-flow: column; grid-template-columns: none; gap: 16px; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .hp-market { scroll-snap-align: start; }
    .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .hp-steps__item::after { display: none; }
    .hp-stats__list { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    .hp-stats__item { padding: 16px 0 8px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
    .hp-stats__list .hp-stats__item:first-child { border-top: 0; }
    .hp-charter__list { gap: 12px 24px; }
    .hp-charter__mascot img { max-width: 58%; max-height: 220px; }
    .hp-support__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .hp-support__list li { font-size: 13px; }
}

@media (max-width: 420px) {
    .hp-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-buttons .hp-btn { flex: 1 1 100%; }
    .hp-store { min-width: 0; flex: 1 1 140px; }
}
