/* AEL Mobile-First Styles (Preview v9) */
/* Same base as v8 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.4;
}

.max-width {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 3rem 1rem;
}

.h-center {
  text-align: center;
}

.stack-sm   { display: flex; flex-direction: column; gap: .5rem; }
.stack-md   { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg   { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-xl   { display: flex; flex-direction: column; gap: 2rem; }

.row-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

@media(min-width:768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.brand-and-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-and-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* nav */
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
}

@media(min-width:768px) {
  .nav-links {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.nav-links a {
  color: #1e3a8a;
  text-decoration: none;
}

.nav-links a:hover {
  color: #000c2a;
}

.btn-quote {
  background-color: #b91c1c;
  color: #fff;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: .75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  font-size: .8rem;
}
.btn-quote:hover {
  background-color: #991b1b;
}

/* hero */
.hero {
  min-height: 80vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 3rem;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(0,19,50,0.6),rgba(0,19,50,0.6)),
    url('https://images.unsplash.com/photo-qms-kprAgJM?auto=format&fit=crop&w=1920&q=80');
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

@media(min-width:768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

@media(min-width:768px) {
  .hero-actions {
    flex-direction: row;
  }
}

.btn-red {
  background-color: #b91c1c;
  color: #fff;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: 1rem;
  min-width: 180px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  display: inline-block;
  font-size: .9rem;
}
.btn-red:hover {
  background-color: #991b1b;
}

.btn-light {
  background-color: #fff;
  color: #0b2242;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: 1rem;
  min-width: 180px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: inline-block;
  font-size: .9rem;
}
.btn-light:hover {
  background-color: #f1f5f9;
}

/* dark blue button */
.btn-darkblue {
  background-color: #0b2242;
  color: #fff;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: .9rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  font-size: .8rem;
  display: inline-block;
}
.btn-darkblue:hover {
  background-color: #1e3a8a;
}

/* red + dark full-width buttons (normalized) */
.btn-red-full,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .9rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* red button full-width */
.btn-red-full {
  background-color: #b91c1c;
  color: #fff;
}
.btn-red-full:hover {
  background-color: #991b1b;
}

/* small dark button for forms */
.btn-dark {
  background-color: #0b2242;
  color: #fff;
}
.btn-dark:hover {
  background-color: #1e3a8a;
}

/* outlined button (for “Dedicated Capacity” bubble, etc.) */
.btn-outline {
  background-color: #fff;
  color: #0b2242;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: 1rem;
  min-width: 180px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: inline-block;
  font-size: .9rem;
}
.btn-outline:hover {
  background-color: #f9fafb;
}

/* download app button */
.btn-app {
  background-color: #b91c1c;
  color: #fff;
  font-weight: 600;
  text-align: center;
  width: 100%;
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .8rem;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.btn-app:hover {
  background-color: #991b1b;
}

/* section headings */
.section-heading {
  text-align: center;
  color: #0b2242;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* HOW IT WORKS cards */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media(min-width:768px){
  .how-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.how-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.03);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.icon-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}

.step-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #dc2626;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.how-title {
  color: #0b2242;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.how-desc {
  font-size: .9rem;
  color: #4b5563;
  line-height: 1.5;
}

/* SERVICES SNAPSHOT GRID */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  color: #fff;
}
@media(min-width:768px){
  .services-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media(min-width:1024px){
  .services-grid {
    grid-template-columns: repeat(4,1fr);
  }
}

.service-tile {
  position: relative;
  min-height: 200px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.service-overlay {
  background-image: linear-gradient(rgba(0,19,50,0.6),rgba(0,19,50,0.6));
  position: absolute;
  inset: 0;
}

.service-content {
  position: relative;
  padding: 1rem;
  font-size: .9rem;
  line-height: 1.4;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}

.service-desc {
  color: #e5e7eb;
  font-size: .8rem;
  line-height: 1.4;
}

.view-services-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ABOUT */
.about-section {
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(10,10,10,0.55),rgba(10,10,10,0.55)),
    url('https://images.unsplash.com/photo-oILnSnA50-k?auto=format&fit=crop&w=1600&q=80');
  padding: 3rem 1rem;
}

.about-kicker {
  color: #f87171;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.about-headline {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
}

.about-copy {
  font-size: .95rem;
  line-height: 1.5;
  color: #e5e7eb;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CONTACT / QUOTE FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:1024px){
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.contact-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b2242;
  line-height: 1.3;
  margin-bottom: .75rem;
}

.contact-desc {
  color: #374151;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.contact-list {
  font-size: .8rem;
  color: #374151;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-small {
  font-size: .7rem;
  color: #6b7280;
  font-weight: 400;
}

.quote-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.03);
}

/* FORMS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media(min-width:768px){
  .form-grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

input, textarea, select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: .75rem;
  padding: .6rem .75rem;
  font-size: .8rem;
  font-family: inherit;
  color: #1f2937;
  background-color: #fff;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* PORTAL PAGE BACKGROUND */
.portal-bg-page {
  color: #fff;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),
    url('https://images.unsplash.com/photo-0A_XOIocfrE?auto=format&fit=crop&w=1600&q=80');
  padding: 3rem 1rem;
}

/* PORTAL LAYOUT */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media(min-width:1024px){
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-card {
  backdrop-filter: blur(6px);
  background-color: rgba(255,255,255,0.08);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  font-size: .8rem;
  line-height: 1.4;
}

.portal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: #fff;
}

/* Make both portal buttons (Sign In + Apply for Access) visually identical */
.portal-card button,
.portal-card .btn-red-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: .9rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border: none;
}

.portal-note {
  text-align: center;
  font-size: .65rem;
  color: #d1d5db;
  margin-top: .5rem;
}

/* driver app promo section (portal page) */
.app-section {
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: center;
}

.app-kicker {
  color: #f87171;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.app-headline {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.app-card {
  background-color: rgba(255,255,255,0.08);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1rem;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  font-size: .8rem;
  line-height: 1.4;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media(min-width:768px){
  .app-card {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}

.app-card-head {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #fff;
}

.app-card-desc {
  color: #e5e7eb;
  font-size: .8rem;
  line-height: 1.4;
}

.app-col-right {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
}

/* dedicated capacity block on services page */
.dedicated-block {
  text-align: center;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.03);
  font-size: .8rem;
  line-height: 1.4;
  color: #374151;
}
.dedicated-headline {
  color: #0b2242;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.dedicated-desc {
  font-size: .8rem;
  color: #4b5563;
  line-height: 1.5;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* FOOTER */
.site-footer {
  background-color: #0b2242;
  color: #e5e7eb;
  font-size: .8rem;
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:768px){
  .footer-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.footer-company {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .8rem;
}

.footer-nav a {
  color: #e5e7eb;
  text-decoration: none;
}
.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  font-size: .8rem;
  color: #e5e7eb;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-small {
  font-size: .7rem;
  color: #9ca3af;
  line-height: 1.4;
}
