/*
Theme Name: Drive It Solutions Pro
Theme URI: https://driveit.solutions/
Author: Drive It Solutions
Author URI: https://driveit.solutions/
Description: Premium multi page WordPress theme for Drive It Solutions truck dispatch services, with service pages, legal pages, SEO metadata, schema, fast WebP images, and a carrier setup form.
Version: 2.1.0
License: GPLv2 or later
Text Domain: driveit-pro
*/

:root {
  --green: #52a716;
  --green-soft: #e9f7e3;
  --green-glow: #8ade45;
  --ink: #101411;
  --ink-2: #171e19;
  --text: #152015;
  --muted: #5f6d5b;
  --surface: #ffffff;
  --soft: #f5f8f2;
  --line: #e1eadc;
  --shadow: 0 30px 90px rgba(16, 20, 17, .16);
  --shadow-soft: 0 16px 46px rgba(16, 20, 17, .10);
  --radius: 28px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.72; overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--text); line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); color: #fff; }
h2 { font-size: clamp(2.15rem, 4.6vw, 4.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.section { padding: 98px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.78); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.pro-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.micro-label, .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-weight: 950; text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 38px; height: 2px; border-radius: 99px; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border-radius: 999px; font-weight: 950; border: 1px solid transparent; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green), #2f7609); box-shadow: 0 18px 42px rgba(82, 167, 22, .29); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.11); backdrop-filter: blur(14px); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-ghost { color: var(--text); background: #fff; border-color: var(--line); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(16,20,17,.72); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); transition: .25s ease; }
.site-header.scrolled { background: rgba(16,20,17,.97); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.navbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 950; letter-spacing: -.03em; min-width: 0; }
.brand img, .brand .custom-logo { width: 58px; height: 58px; object-fit: contain; }
.brand span { line-height: 1.05; white-space: nowrap; }
.brand small { display: block; color: var(--green-glow); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links, .menu { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nav-links a, .menu a { display: block; color: rgba(255,255,255,.84); padding: 11px 13px; border-radius: 999px; font-weight: 850; font-size: .94rem; }
.nav-links a:hover, .menu a:hover { color: #fff; background: rgba(255,255,255,.12); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; border-radius: 99px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.hero { min-height: 100svh; display: grid; align-items: center; padding: 138px 0 82px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(16,20,17,.99) 0%, rgba(16,20,17,.90) 39%, rgba(16,20,17,.48) 72%, rgba(16,20,17,.22) 100%), url('assets/hero-driveit.webp'); background-position: center right; background-size: cover; background-repeat: no-repeat; transform: scale(1.015); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, transparent, rgba(16,20,17,.95)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 58px; align-items: center; }
.hero-subtitle { max-width: 760px; color: rgba(255,255,255,.81); font-size: clamp(1.04rem, 1.45vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust span { color: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.08); font-size: .88rem; font-weight: 850; }
.hero-panel { padding: 28px; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.18); border-radius: 32px; backdrop-filter: blur(18px); box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.dispatch-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.status-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--green-glow); box-shadow: 0 0 0 8px rgba(138,222,69,.14); }
.hero-metric { display: grid; gap: 2px; }
.hero-metric div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-metric strong { color: #fff; }
.hero-metric span { color: var(--green-glow); font-weight: 950; }
.stats-band { padding: 30px 0; background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: #fff; }
.stat-card strong { display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.05em; color: var(--green-glow); }
.stat-card p { color: rgba(255,255,255,.76); margin: 8px 0 0; font-weight: 760; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.image-frame { overflow: hidden; min-height: 430px; border-radius: 34px; position: relative; box-shadow: var(--shadow); background: var(--ink); }
.image-frame img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.overlay-note { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 22px; border-radius: 24px; background: rgba(16,20,17,.88); color: #fff; backdrop-filter: blur(12px); }
.overlay-note p { color: rgba(255,255,255,.77); margin: 0; }
.section-center { max-width: 820px; margin: 0 auto 44px; text-align: center; }
.section-center .eyebrow { justify-content: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card, .truck-card, .feature-card { padding: 28px; transition: .25s ease; }
.service-card:hover, .truck-card:hover, .feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-badge { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--green-soft); color: var(--green); font-weight: 950; margin-bottom: 20px; }
.truck-card a, .content-prose a { color: var(--green); font-weight: 900; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.process-step b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--green); color: #fff; margin-bottom: 18px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.quote-card p { color: var(--text); font-weight: 760; }
.quote-card strong { display: block; color: var(--green); margin-top: 18px; }
.cta-band { padding: 72px 0; background: linear-gradient(135deg, var(--ink), #1f3417); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.78); margin: 0; }
.page-hero { padding: 154px 0 76px; background: radial-gradient(circle at 88% 14%, rgba(82,167,22,.26), transparent 34%), linear-gradient(135deg, var(--ink), #152416); color: #fff; }
.page-hero h1 { max-width: 1020px; font-size: clamp(2.6rem, 6vw, 5.15rem); }
.page-hero p { color: rgba(255,255,255,.77); max-width: 820px; font-size: 1.12rem; }
.breadcrumbs { color: rgba(255,255,255,.62); font-weight: 850; margin-bottom: 20px; }
.breadcrumbs a { color: var(--green-glow); }
.content-prose { max-width: 920px; }
.content-prose h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); margin-top: 42px; }
.content-prose h3 { margin-top: 30px; }
.content-prose ul { color: var(--muted); padding-left: 22px; }
.content-prose li { margin-bottom: 8px; }
.legal-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.legal-nav { position: sticky; top: 112px; padding: 22px; }
.legal-nav a { display: block; padding: 10px 0; color: var(--muted); font-weight: 850; border-bottom: 1px solid var(--line); }
.carrier-form { padding: 34px; }
.form-intro { margin-bottom: 24px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label span { display: block; color: var(--text); font-weight: 900; margin-bottom: 8px; }
input, select, textarea { width: 100%; min-height: 54px; border: 1px solid #dfe9db; border-radius: 16px; padding: 0 16px; font: inherit; outline: none; background: #fff; }
textarea { min-height: 130px; padding-top: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(82,167,22,.12); }
.captcha-row { margin: 18px 0; }
.math-captcha { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.math-captcha input { max-width: 110px; min-height: 46px; }
.form-note { margin: 12px 0 0; font-size: .92rem; }
.form-alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; font-weight: 850; }
.form-alert.error { background: #fff1f1; color: #9b1c1c; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact-card { padding: 26px; }
.contact-card a { color: var(--green); font-weight: 950; word-break: break-word; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
details { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
summary { cursor: pointer; font-weight: 950; color: var(--text); }
details p { margin-top: 12px; }
.client-strip { padding: 44px 0; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }
.client-title { text-align: center; margin-bottom: 22px; font-weight: 950; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.client-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.client-track { display: flex; gap: 16px; width: max-content; animation: clientSlide 32s linear infinite; }
.client-logo { min-width: 210px; height: 70px; border-radius: 22px; border: 1px solid var(--line); background: var(--soft); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 950; }
.client-logo b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); }
@keyframes clientSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-footer { background: var(--ink); color: rgba(255,255,255,.74); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.02rem; letter-spacing: 0; }
.site-footer a { color: rgba(255,255,255,.74); display: block; margin: 8px 0; }
.footer-brand img { width: 76px; margin-bottom: 14px; }
.footer-bottom { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.success-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(6,9,7,.72); display: grid; place-items: center; padding: 22px; opacity: 0; visibility: hidden; transition: .22s ease; }
.success-modal.show { opacity: 1; visibility: visible; }
.success-modal-card { position: relative; width: min(540px, 100%); padding: 32px; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.success-x { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; color: var(--muted); }
.success-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: 2rem; font-weight: 950; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--green); color: #fff; font-size: 1.25rem; font-weight: 950; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .2s ease; z-index: 900; cursor: pointer; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1080px) { .hero-grid, .split, .contact-grid, .legal-wrap { grid-template-columns: 1fr; } .hero-panel { max-width: 620px; } .card-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); } .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } .legal-nav { position: static; } }
@media (max-width: 900px) { .site-header { background: rgba(16,20,17,.97); } .nav-toggle { display: inline-flex; } .nav-menu-wrap { position: fixed; top: 82px; left: 18px; right: 18px; background: rgba(255,255,255,.98); color: var(--text); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .22s ease; max-height: calc(100vh - 104px); overflow: auto; } .nav-menu-wrap.open { opacity: 1; visibility: visible; transform: translateY(0); } .nav-links, .menu { display: grid; gap: 4px; align-items: stretch; } .nav-links a, .menu a { color: var(--text); display: block; padding: 13px; } .header-cta { display: none; } .hero { min-height: auto; padding: 116px 0 72px; } .hero-bg { background-image: linear-gradient(180deg, rgba(16,20,17,.98), rgba(16,20,17,.84), rgba(16,20,17,.72)), url('assets/hero-driveit.webp'); background-position: 68% center; } .hero-grid { gap: 30px; } .hero-copy { text-align: center; margin: 0 auto; } .hero-copy .eyebrow { justify-content: center; } .hero-actions, .hero-trust { justify-content: center; } .cta-inner { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 680px) { .container { width: min(100% - 28px, var(--container)); } .section { padding: 68px 0; } .navbar { min-height: 76px; } .brand span { display: none; } .brand img, .brand .custom-logo { width: 52px; height: 52px; } h1 { font-size: clamp(2.08rem, 11vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; } h2 { font-size: clamp(1.85rem, 9vw, 2.75rem); } .hero { padding-top: 98px; padding-bottom: 54px; } .hero-bg { background-position: 64% center; } .hero-subtitle { font-size: .98rem; } .btn { width: 100%; min-height: 52px; } .hero-actions { flex-direction: column; } .hero-trust span { width: 100%; text-align: center; } .hero-panel { display: none; } .stats-grid, .card-grid, .testimonial-grid, .process-grid, .faq-grid, .footer-grid, .field-grid { grid-template-columns: 1fr; } .stat-card, .service-card, .truck-card, .feature-card, .quote-card, .carrier-form { padding: 22px; } .image-frame, .image-frame img { min-height: 320px; } .page-hero { padding: 122px 0 58px; } .legal-nav { display: none; } .math-captcha { align-items: flex-start; flex-direction: column; } .math-captcha input { max-width: 100%; } .g-recaptcha { transform: scale(.86); transform-origin: 0 0; } .client-marquee { mask-image: none; } .client-logo { min-width: 178px; height: 62px; } .footer-bottom { display: grid; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
