/* Traceur.ma landing pages - templates/front/landing */
:root {
    --lp-navy: #0f2035;
    --lp-navy-dark: #0b1829;
    --lp-navy-line: rgba(255, 255, 255, .12);
    /* theme color of the page, set by the admin (landing_page.page_color) on <html style="--lp-page-color: ..."> */
    --lp-page-color: #e5202e;
    /* accent colors used everywhere below (historically named "red") */
    --lp-red: var(--lp-page-color);
    --lp-red-dark: #c8141f;
    --lp-pink: #fdebed;
    --lp-soft: #f2f6fb;
    --lp-text: #16202e;
    --lp-muted: #5d6675;
    --lp-light: #c3cad5;
    --lp-faq: #868c95;
    --lp-radius: 10px;
    --lp-container: 1180px;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --lp-red-dark: color-mix(in srgb, var(--lp-page-color) 82%, #000);
        --lp-pink: color-mix(in srgb, var(--lp-page-color) 10%, #fff);
    }
}

/* the shared site header follows the page color */
.lp-body .site-header { --sh-red: var(--lp-red); --sh-red-dark: var(--lp-red-dark); --sh-red-soft: var(--lp-pink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp-body { margin: 0; font-family: "Poppins", Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--lp-text); background: #fff; -webkit-font-smoothing: antialiased; }
.lp-body img { max-width: 100%; height: auto; }
.lp-body a { color: inherit; text-decoration: none; }
.lp-body h1, .lp-body h2, .lp-body h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.lp-body p { margin: 0 0 .8em; }
.lp-body p:last-child { margin-bottom: 0; }

.lp-container { width: 100%; max-width: var(--lp-container); margin: 0 auto; padding: 0 24px; }
.lp-section { padding: 64px 0; scroll-margin-top: 16px; }
.lp-section__head { max-width: 760px; margin-bottom: 32px; }
.lp-section__title { font-size: 30px; font-weight: 700; color: var(--lp-navy); }
.lp-section__intro { margin-top: 8px; font-size: 17px; color: var(--lp-muted); }
.lp-dark { background: var(--lp-navy); color: #fff; }
.lp-dark .lp-section__title { color: #fff; }

/* Preview banner (unpublished page seen by an admin) */
.lp-preview { background: #fff3cd; color: #664d03; text-align: center; font-size: 14px; padding: 8px 16px; }

/* Buttons */
.lp-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--primary { background: var(--lp-red); color: #fff !important; }
.lp-btn--primary:hover { background: var(--lp-red-dark); }
.lp-btn--ghost { border-color: rgba(255, 255, 255, .85); color: #fff !important; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.lp-btn--block { width: 100%; justify-content: center; }
.lp-btn__round { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -10px; border-radius: 50%; background: #fff; color: var(--lp-navy); font-size: 14px; }
.lp-btn__round .fa-whatsapp { color: #25d366; font-size: 18px; }
.lp-btn .fa-arrow-right { font-size: 13px; }

.lp-logo img { display: block; height: 52px; width: auto; }

/* 1. Hero */
.lp-hero { position: relative; overflow: hidden; padding: 128px 0 56px; min-height: 560px; background: var(--lp-navy); color: #fff; }
.lp-hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; background-size: cover; background-position: center; }
.lp-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--lp-navy) 0%, rgba(15, 32, 53, .78) 28%, rgba(15, 32, 53, .15) 70%, rgba(15, 32, 53, 0) 100%); }
.lp-hero .lp-container { position: relative; z-index: 2; }
.lp-hero__content { max-width: 600px; }
.lp-hero h1 { font-size: 40px; font-weight: 700; }
.lp-hero__highlight { display: block; margin-top: 4px; font-size: 64px; font-weight: 800; line-height: 1.05; color: var(--lp-red); }
.lp-hero__subtitle { margin: 20px 0 28px; max-width: 520px; font-size: 16px; color: #e3e8ef; }
.lp-hero__bullets { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-hero__bullets li { display: flex; align-items: center; gap: 10px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--lp-navy-line); font-size: 13px; font-weight: 600; line-height: 1.3; max-width: 230px; }
.lp-hero__bullets li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.lp-hero__bullet-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--lp-red); color: var(--lp-red); font-size: 14px; }

/* 2. Problem */
.lp-problem { background: #fff; }
.lp-problem__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.lp-problem__grid--single { grid-template-columns: minmax(0, 1fr); }
.lp-problem__quote { order: -1; position: relative; margin: 0; padding: 28px 28px 28px 44px; border-radius: var(--lp-radius); background: var(--lp-pink); color: var(--lp-red); font-size: 20px; font-style: italic; font-weight: 700; line-height: 1.3; }
.lp-problem__quote .fa-quote-left { position: absolute; top: 22px; left: 14px; font-size: 22px; }
.lp-problem__quote p { margin: 0; }
.lp-problem__text { color: var(--lp-muted); margin-top: 14px; }

/* 3. Features */
.lp-features { background: var(--lp-soft); }
.lp-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.lp-feature { padding: 26px 22px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15, 32, 53, .06); }
.lp-feature__icon { display: block; margin-bottom: 18px; font-size: 34px; color: var(--lp-red); }
.lp-feature h3 { margin-bottom: 6px; font-size: 16px; font-weight: 700; color: var(--lp-navy); }
.lp-feature p { font-size: 14px; color: var(--lp-muted); }

/* 4. Use cases */
.lp-cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.lp-case { text-align: center; }
.lp-case__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 14px; overflow: hidden; border-radius: 6px; background: var(--lp-soft); color: var(--lp-red); font-size: 42px; }
.lp-case__media img { width: 100%; height: 100%; object-fit: cover; }
.lp-case__media--icon { aspect-ratio: auto; height: 120px; }
.lp-case h3 { margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--lp-navy); }
.lp-case p { font-size: 13px; color: var(--lp-muted); }
.lp-case__label { display: block; margin-bottom: 2px; font-style: italic; color: var(--lp-text); }

/* 5. App + steps */
.lp-app__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.lp-app__grid--with-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lp-app__grid--with-visual { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.lp-app__grid--with-steps.lp-app__grid--with-visual { grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr) minmax(0, 1fr); }
.lp-app h2 { font-size: 26px; font-weight: 700; color: #fff; }
.lp-app__text { margin: 16px 0 24px; color: #dde3eb; }
.lp-app__visual img { display: block; margin: 0 auto; max-height: 420px; width: auto; }
.lp-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-store { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; background: #000; color: #fff !important; line-height: 1.1; }
.lp-store i { font-size: 26px; }
.lp-store small { display: block; font-size: 10px; }
.lp-store strong { display: block; font-size: 18px; font-weight: 600; }
.lp-steps h2 { margin-bottom: 24px; font-size: 24px; font-weight: 700; color: #fff; }
.lp-steps__list { margin: 0; padding: 0; list-style: none; }
.lp-step { display: grid; grid-template-columns: 38px 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 0; }
.lp-step__number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lp-red); color: #fff; font-size: 14px; font-weight: 600; }
.lp-step__icon { padding-top: 4px; font-size: 24px; text-align: center; color: #fff; }
.lp-step h3 { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lp-step p { margin-top: 2px; font-size: 12.5px; color: var(--lp-light); }

/* 6. FAQ */
.lp-faq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.9fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.lp-faq__grid--no-cta { grid-template-columns: minmax(0, .9fr) minmax(0, 2.8fr); }
.lp-faq h2 { font-size: 32px; font-weight: 700; color: var(--lp-navy); }
.lp-faq__item { margin-bottom: 12px; border-radius: 6px; background: var(--lp-faq); color: #fff; }
.lp-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary .fa-chevron-down { transition: transform .2s; }
.lp-faq__item[open] summary .fa-chevron-down { transform: rotate(180deg); }
.lp-faq__answer { padding: 0 18px 16px; font-size: 14px; color: #f4f5f7; }
.lp-faq__cta { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 24px; border-radius: var(--lp-radius); background: var(--lp-red); color: #fff !important; font-size: 20px; font-weight: 500; line-height: 1.3; transition: background-color .2s; }
.lp-faq__cta:hover { background: var(--lp-red-dark); }
.lp-faq__cta .fa-arrow-right { font-size: 18px; }

/* 7. Final CTA + form */
.lp-cta { position: relative; overflow: hidden; padding: 56px 0; }
.lp-cta__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lp-cta__grid--with-visual { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 340px); gap: 24px; }
.lp-cta__grid--no-form { grid-template-columns: minmax(0, 1fr); }
.lp-cta__grid--with-visual.lp-cta__grid--no-form { grid-template-columns: 210px minmax(0, 1fr); }
/* the mascot stands on the bottom edge of the band */
.lp-cta__visual { align-self: end; margin-bottom: -56px; }
.lp-cta__visual img { display: block; width: 100%; min-width: 320px; height: auto; margin: 0 auto; z-index: 1; position: relative; margin-left: -50px; }
.lp-cta h2 { font-size: 30px; font-weight: 700; color: #fff; }
.lp-cta__text { margin: 12px 0 24px; color: #e8ecf2; font-size: 16px; }
.lp-cta .lp-buttons { gap: 8px; }
.lp-cta .lp-btn { min-height: 42px; padding: 7px 15px; font-size: 12.5px; }
.lp-cta .lp-btn__round { width: 26px; height: 26px; margin-left: -8px; font-size: 12px; }
.lp-cta .lp-btn--whatsapp-line { border-color: #25d366; }
.lp-cta .lp-btn--whatsapp-line:hover { background: rgba(37, 211, 102, .12); }
.lp-cta .lp-btn--whatsapp-line .lp-btn__round { background: #25d366; }
.lp-cta .lp-btn--whatsapp-line .lp-btn__round .fa-whatsapp { color: #fff; font-size: 16px; }
.lp-cta .lp-btn--phone-line .lp-btn__round { background: transparent; color: #fff; font-size: 16px; }

/* Quote form (final CTA) */
.lp-form { padding: 16px; border-radius: 12px; background: #fff; color: var(--lp-text); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); scroll-margin-top: 16px; }
.lp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lp-form input, .lp-form select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #e2e6ec; border-radius: 10px; background: #f3f5f8; color: var(--lp-text); font: inherit; font-size: 14px; font-weight: 500; }
.lp-form input::placeholder { color: #6b7280; opacity: 1; }
.lp-form input:focus, .lp-form select:focus { outline: none; border-color: var(--lp-red); background: #fff; box-shadow: 0 0 0 3px var(--lp-pink); }
.lp-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; }
.lp-form select:has(option[value=""]:checked) { color: #6b7280; }
.lp-form__grid select { padding: 0 28px 0 12px; font-size: 13px; background-position: right 10px center; }
.lp-form .lp-btn--submit { width: 100%; min-height: 56px; justify-content: center; border-radius: 10px; font-size: 15px; font-weight: 500; }
.lp-form .lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-alert { margin-bottom: 14px; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.lp-alert--success { background: #e7f7ee; color: #0f6b3a; }
.lp-alert--error { background: var(--lp-pink); color: var(--lp-red-dark); }

/* Free text block */
.lp-text__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.lp-text__grid--with-visual { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.lp-text__content { margin-top: 16px; color: var(--lp-muted); }
.lp-text__visual img { display: block; border-radius: var(--lp-radius); }

/* Footer */
.lp-footer { padding: 28px 0; background: var(--lp-navy-dark); border-top: 1px solid var(--lp-navy-line); color: #fff; }
.lp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.lp-footer__right { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.lp-footer__right .fa-map-marker-alt { margin-right: 6px; font-size: 22px; vertical-align: middle; color: var(--lp-red); }
.lp-footer__social { display: flex; gap: 16px; font-size: 18px; }
.lp-footer__social a:hover { color: var(--lp-red); }
.lp-footer__links { width: 100%; font-size: 12px; color: var(--lp-light); }
.lp-footer__links a { text-decoration: underline; }

/* Sticky contact bar (mobile) */
.lp-sticky { display: none; }

@media (max-width: 1100px) {
    .lp-faq__grid, .lp-faq__grid--no-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .lp-faq__cta { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 16px; }
    .lp-app__grid--with-steps.lp-app__grid--with-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lp-app__grid--with-steps.lp-app__grid--with-visual .lp-app__visual { display: none; }
    .lp-cta__grid--with-visual { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .lp-cta__grid--with-visual.lp-cta__grid--no-form { grid-template-columns: minmax(0, 1fr); }
    .lp-cta__grid--with-visual .lp-cta__visual { display: none; }
}

@media (max-width: 860px) {
    .lp-section { padding: 48px 0; }
    .lp-section__title, .lp-faq h2, .lp-cta h2 { font-size: 25px; }
    .lp-hero { padding-top: 110px; min-height: 0; }
    .lp-hero__bg { width: 100%; opacity: .35; }
    .lp-hero__bg::after { background: linear-gradient(180deg, rgba(15, 32, 53, .6), var(--lp-navy)); }
    .lp-hero h1 { font-size: 30px; }
    .lp-hero__highlight { font-size: 44px; }
    .lp-hero__bullets li { border-right: 0; margin-right: 0; padding-right: 12px; max-width: none; }
    .lp-problem__grid, .lp-app__grid--with-steps, .lp-app__grid--with-visual, .lp-app__grid--with-steps.lp-app__grid--with-visual,
    .lp-faq__grid, .lp-faq__grid--no-cta, .lp-cta__grid, .lp-cta__grid--with-visual, .lp-text__grid--with-visual { grid-template-columns: minmax(0, 1fr); }
    .lp-problem__quote { order: 0; }
    .lp-cta__grid--with-visual .lp-cta__visual { display: block; margin: -16px 0 0; }
    .lp-cta__visual img { min-width: 0; max-width: 190px; margin-left: auto; }
    .lp-app__visual { display: none; }
    .lp-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    body.lp-body { padding-bottom: 64px; }
    .lp-container { padding: 0 16px; }
    .lp-hero .lp-buttons .lp-btn, .lp-cta .lp-buttons .lp-btn { width: 100%; justify-content: center; }
    .lp-form__grid { grid-template-columns: minmax(0, 1fr); }
    .lp-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .lp-case__media--icon { height: 90px; font-size: 34px; }
    .lp-footer__inner { flex-direction: column; align-items: flex-start; }
    .lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 8px 12px; background: var(--lp-navy); box-shadow: 0 -4px 16px rgba(0, 0, 0, .2); }
    .lp-sticky .lp-btn { flex: 1; justify-content: center; min-height: 44px; padding: 8px 12px; font-size: 14px; }
    .lp-sticky .lp-btn--whatsapp { background: #25d366; color: #fff !important; }
}
