/* Home page sections below the hero (resources/views/web/home.blade.php).
   Same theme as home-hero.css: navy background, cyan/blue gradients, glass cards.
   Scoped under main.xp-home, plus body.xp-home-page for the page background and footer,
   so nothing here reaches other pages. Sizes follow the hero rule: the design value at
   1440px and wider, shrinking in proportion below (clamp(floor, N/14.4 vw, N px)). */

body.xp-home-page { background: #040C1E; }

.xp-home {
    --xp-bg: #040C1E;
    --xp-bg-2: #07162D;
    --xp-cyan: #1EC8FF;
    --xp-line: rgba(255,255,255,.12);
    --xp-muted: rgba(255,255,255,.72);
    --xp-blue-grad: linear-gradient(90deg, #004DFF 0%, #008CFF 55%, #00C8FF 100%);
    background: var(--xp-bg);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
.xp-home *, .xp-home *::before, .xp-home *::after { box-sizing: border-box; }
/* custom.css colours every a / h2 / h3 / p black or brand blue; reset inside the home page */
.xp-home a { color: inherit; text-decoration: none; }
.xp-home h2, .xp-home h3, .xp-home p, .xp-home figure, .xp-home blockquote { margin: 0; color: inherit; }
.xp-home ul { list-style: none; margin: 0; padding: 0; }
.xp-home img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.xp-section { position: relative; padding: clamp(64px, 6.944vw, 100px) 0; }
/* Same left edge as the hero text: hero padding 24px + clamp(8px, 4.861vw, 70px) */
.xp-wrap { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 calc(24px + clamp(8px, 4.861vw, 70px)); }
.xp-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 4.444vw, 64px); }

/* Soft glows so the sections read as one continuous dark page */
.xp-services::before, .xp-adv::before, .xp-download::before, .xp-contact::before {
    content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0,120,255,.20), rgba(0,120,255,0));
}
.xp-services::before { top: -260px; left: 50%; transform: translateX(-50%); }
.xp-adv::before { top: 0; right: -260px; }
.xp-download::before { bottom: -260px; left: -260px; }
.xp-contact::before { top: 10%; right: -300px; }
.xp-story, .xp-testimonials { background: var(--xp-bg-2); }

/* ---------- Section heading ---------- */
.xp-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 3.889vw, 56px); }
.xp-head-center { align-items: center; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.xp-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.xp-kicker {
    /* Section titles (Services, Our Story, Mobile Car Advertising, Sales Team, ...): 20px at 1440, client asked for bigger than the 18px descriptions */
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(16px, 1.389vw, 20px); line-height: 1.3;
    letter-spacing: .16em; text-transform: uppercase; color: var(--xp-cyan);
}
.xp-kicker::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(0,200,255,0), #2FE0FF); box-shadow: 0 0 8px rgba(0,200,255,.8); }
.xp-head-center .xp-kicker::after { content: ""; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #2FE0FF, rgba(0,200,255,0)); box-shadow: 0 0 8px rgba(0,200,255,.8); }
.xp-home .xp-h2 {
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(30px, 3.333vw, 48px);
    line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.xp-home .xp-h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(22px, 2.222vw, 32px); line-height: 1.2; color: #fff; }
.xp-grad { background: linear-gradient(90deg, #5BE3FF 0%, #1EC8FF 45%, #0A9BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xp-home .xp-lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: var(--xp-muted); }

/* ---------- Glass card + icon tile ---------- */
.xp-card {
    position: relative; border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)), rgba(10,26,54,.55);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.25);
}
.xp-card::before, .xp-frame::before, .xp-industry::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(140,200,255,.38), rgba(42,107,255,.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.xp-icon {
    position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--xp-cyan);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 50%), rgba(10,26,54,.8);
    box-shadow: inset 0 0 0 1px rgba(111,182,255,.35), 0 0 18px rgba(0,144,255,.28);
}
.xp-icon svg { filter: drop-shadow(0 0 4px rgba(0,180,255,.7)); }
.xp-icon-sm { width: 42px; height: 42px; border-radius: 12px; }
.xp-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.xp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--xp-cyan); transition: gap .2s; }

/* Buttons reuse .xp-btn-blue / .xp-btn-glass from home-hero.css */
.xp-btn-cta { height: 58px; border-radius: 14px; padding: 0 12px 0 28px; gap: 16px; font-size: 16px; }
.xp-btn-cta .xp-arrow { width: 34px; height: 34px; }
.xp-btn-outline {
    height: 58px; border-radius: 14px; padding: 0 28px; font-size: 16px; font-weight: 500;
    border: 1px solid rgba(255,255,255,.5); background: rgba(5,14,31,.35);
}
.xp-btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Services ---------- */
.xp-industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xp-industry {
    position: relative; display: block; height: clamp(300px, 26.389vw, 380px); border-radius: 20px; overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .3s, box-shadow .3s;
}
.xp-industry img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.xp-industry::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,12,30,.05) 25%, rgba(4,12,30,.55) 55%, rgba(4,12,30,.96) 100%);
}
.xp-industry-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.xp-industry-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--xp-cyan); }
.xp-industry-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(18px, 1.389vw, 20px); line-height: 1.3; color: #fff; }
.xp-industry .xp-link { margin-top: 6px; }
.xp-industry:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.4), 0 0 26px rgba(0,140,255,.35); }
.xp-industry:hover img { transform: scale(1.06); }
.xp-industry:hover .xp-link, .xp-info:hover .xp-link { gap: 12px; }

.xp-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.xp-info { display: flex; gap: 18px; padding: 28px; transition: transform .3s, box-shadow .3s; }
.xp-info:hover { transform: translateY(-3px); box-shadow: inset 0 1px 2px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.25), 0 0 24px rgba(0,140,255,.28); }
.xp-info-text { display: flex; flex-direction: column; gap: 8px; }
.xp-home .xp-info h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.xp-home .xp-info p { font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.65; color: var(--xp-muted); }

/* ---------- Story ---------- */
.xp-story-media { position: relative; padding-bottom: 40px; }
.xp-frame { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(0,120,255,.18); }
.xp-frame img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.xp-chip {
    position: absolute; left: clamp(16px, 2.222vw, 32px); bottom: 0; z-index: 3;
    display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 18px;
    font-weight: 600; font-size: 14px; line-height: 1.5;
    background: rgba(7,22,45,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(140,200,255,.3); box-shadow: 0 16px 36px rgba(0,0,0,.4), 0 0 22px rgba(0,140,255,.25);
}
.xp-story-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.xp-checks { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 12px; }
.xp-checks li { position: relative; padding-left: 38px; font-size: clamp(15px, 1.111vw, 16px); line-height: 1.6; color: rgba(255,255,255,.9); }
.xp-checks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,140,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231EC8FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(30,200,255,.45);
}

/* ---------- Stats ---------- */
.xp-stats-sec { padding: clamp(48px, 4.444vw, 64px) 0; }
.xp-stats {
    position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 24px; overflow: hidden;
    background: linear-gradient(90deg, rgba(0,77,255,.16), rgba(0,200,255,.08)), rgba(10,26,54,.6);
    box-shadow: inset 0 0 0 1px rgba(140,200,255,.22), 0 20px 50px rgba(0,0,0,.3), 0 0 40px rgba(0,120,255,.18);
}
.xp-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(24px, 2.5vw, 36px) 12px; }
.xp-stat + .xp-stat { box-shadow: inset 1px 0 0 rgba(255,255,255,.1); }
.xp-stat-num {
    display: inline-flex; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1;
    color: #fff; text-shadow: 0 0 22px rgba(0,170,255,.45);
}
/* custom.css sets .counting to 24px black */
.xp-home .xp-stat-num .counting { font: inherit; line-height: inherit; color: inherit; }
.xp-stat-label { font-size: 14px; font-weight: 500; color: var(--xp-muted); }

/* ---------- Mobile Car Advertising ---------- */
.xp-adv-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.xp-adv-text .xp-btn-row { margin-top: 10px; }
/* The banner is a wide graphic with text in it: show all of it (.xp-frame img crops to 16:11 for the story photo) */
.xp-home .xp-adv-media img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* ---------- Sales Team ---------- */
.xp-sales-sec { padding-top: 0; }
.xp-sales {
    display: flex; align-items: center; gap: clamp(20px, 2.222vw, 32px); padding: clamp(28px, 2.778vw, 40px) clamp(24px, 3.333vw, 48px);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(0,200,255,.22), rgba(0,200,255,0) 55%),
        linear-gradient(90deg, rgba(0,77,255,.22), rgba(10,26,54,.6));
}
.xp-sales-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.xp-home .xp-sales-text p { font-size: 16px; line-height: 1.6; color: var(--xp-muted); }
.xp-sales .xp-btn-cta { flex: none; }

/* ---------- Download app ---------- */
.xp-download-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.xp-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; margin-top: 12px; }
.xp-app { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.xp-home .xp-app h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.xp-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.xp-badges a { transition: transform .2s; }
.xp-badges a:hover { transform: translateY(-2px); }
.xp-badges img { height: 44px; width: auto; }
.xp-phones { position: relative; height: clamp(380px, 33.333vw, 480px); }
.xp-phones::before {
    content: ""; position: absolute; inset: 10% 8%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0,160,255,.45), rgba(0,160,255,0)); filter: blur(10px);
}
.xp-phone {
    position: absolute; top: 50%; left: 50%; width: clamp(150px, 14.861vw, 214px); height: auto;
    border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(140,200,255,.25);
}
.xp-phone-1 { transform: translate(-125%, -46%) rotate(-8deg); }
.xp-phone-3 { transform: translate(25%, -46%) rotate(8deg); }
.xp-phone-2 { z-index: 2; transform: translate(-50%, -54%); }

/* ---------- Testimonials ---------- */
.xp-tst-nav { display: flex; gap: 12px; flex: none; }
.xp-round {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
    border: 1px solid rgba(255,255,255,.35); background: rgba(6,20,48,.5); transition: background .2s, border-color .2s;
}
.xp-round:hover { background: rgba(0,120,255,.35); border-color: rgba(30,200,255,.7); }
.xp-tst-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px;
}
.xp-tst-track::-webkit-scrollbar { display: none; }
.xp-tst { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.xp-quote { font-family: Georgia, serif; font-size: 64px; line-height: .6; height: 28px; color: var(--xp-cyan); text-shadow: 0 0 18px rgba(0,180,255,.6); }
.xp-home .xp-tst h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.xp-home .xp-tst blockquote { flex: 1; font-size: 15px; line-height: 1.7; color: var(--xp-muted); }
.xp-tst figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--xp-line); }
.xp-tst figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(30,200,255,.5); }
.xp-tst figcaption span { display: flex; flex-direction: column; font-size: 13px; color: rgba(255,255,255,.6); }
.xp-tst figcaption b { font-size: 15px; font-weight: 600; color: #fff; }

/* ---------- Contact ---------- */
.xp-contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.xp-contact-info { display: flex; flex-direction: column; gap: 24px; }
.xp-contact-card { display: flex; gap: 18px; padding: 28px; }
.xp-home .xp-contact-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 6px; }
.xp-home .xp-contact-card p { font-size: 15px; line-height: 1.7; color: var(--xp-muted); }
.xp-contact-card a { font-size: 16px; font-weight: 600; color: var(--xp-cyan); }
.xp-form-card { padding: clamp(24px, 2.778vw, 40px); }
.xp-form { display: flex; flex-direction: column; gap: 18px; }
.xp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xp-field label { /* visually hidden; the placeholder shows the label */
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.xp-form input, .xp-form textarea {
    width: 100%; padding: 15px 18px; border-radius: 12px; font: 400 15px 'Poppins', sans-serif; color: #fff;
    background: rgba(4,12,30,.6); border: 1px solid rgba(255,255,255,.16); outline: none; transition: border-color .2s, box-shadow .2s;
}
.xp-form textarea { min-height: 140px; resize: vertical; }
.xp-form input::placeholder, .xp-form textarea::placeholder { color: rgba(255,255,255,.5); }
.xp-form input:focus, .xp-form textarea:focus { border-color: rgba(30,200,255,.8); box-shadow: 0 0 0 3px rgba(0,160,255,.2); }
.xp-form input[type=number]::-webkit-inner-spin-button, .xp-form input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.xp-form input[type=number] { -moz-appearance: textfield; }
.xp-home .error { margin-top: 6px; font-size: 13px; color: #FF8A9B; }
.xp-home .error:empty { display: none; }
.xp-btn-submit { align-self: flex-start; height: 56px; min-width: 180px; padding: 0 32px; gap: 12px; border: 0; border-radius: 14px; font-size: 16px; cursor: pointer; }
.xp-btn-submit .spinner-border { color: #fff; }

/* ---------- Footer (shared markup, home page only) ---------- */
body.xp-home-page footer { background: #030916; border-top: 1px solid rgba(255,255,255,.08); }
body.xp-home-page footer .row:first-child::before { background: linear-gradient(90deg, rgba(255,255,255,0), rgba(140,200,255,.35), rgba(255,255,255,0)); }
body.xp-home-page ul.quick-links { flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
body.xp-home-page ul.quick-links a { color: rgba(255,255,255,.75); white-space: nowrap; transition: color .2s; }
body.xp-home-page ul.quick-links a:hover { color: #1EC8FF; }
body.xp-home-page .bottom-nav p { font-size: 14px; color: rgba(255,255,255,.6); }
body.xp-home-page footer img.trust-pilot { max-width: 160px; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .xp-industries { grid-template-columns: repeat(2, 1fr); }
    .xp-industry { height: 300px; }
    .xp-tst-track { grid-auto-columns: calc((100% - 24px) / 2); }
    .xp-stats { grid-template-columns: repeat(3, 1fr); }
    .xp-stat:nth-child(4) { box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
    .xp-stat:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 991px) {
    .xp-split { grid-template-columns: 1fr; }
    .xp-info-grid { grid-template-columns: 1fr; }
    .xp-contact-grid { grid-template-columns: 1fr; }
    .xp-sales { flex-direction: column; align-items: flex-start; }
    .xp-adv-media { order: 2; }
}
@media (max-width: 720px) {
    .xp-wrap { padding: 0 16px; }
    .xp-industries { grid-template-columns: 1fr; gap: 16px; }
    .xp-industry { height: 240px; }
    .xp-head-row { flex-direction: column; align-items: flex-start; }
    .xp-tst-track { grid-auto-columns: 88%; gap: 16px; }
    .xp-stats { grid-template-columns: repeat(2, 1fr); }
    .xp-stat { box-shadow: none !important; border-top: 1px solid rgba(255,255,255,.1); }
    .xp-stat:nth-child(-n+2) { border-top: 0; }
    .xp-stat:last-child { grid-column: 1 / -1; }
    .xp-apps, .xp-field-row { grid-template-columns: 1fr; }
    .xp-phones { height: 340px; }
    .xp-phone { width: 140px; }
    .xp-btn-cta, .xp-btn-outline, .xp-btn-submit { width: 100%; justify-content: space-between; }
    .xp-btn-outline, .xp-btn-submit { justify-content: center; }
    .xp-chip { position: relative; left: auto; margin: -28px 16px 0; }
    .xp-story-media { padding-bottom: 0; }
}
