/* Delviom — Contract Vehicles (inner page), light theme.
   Layered on top of main.css + index1.css so header, footer and tokens stay
   identical to the approved homepage design. Same inner-page banner pattern as
   the contact / certifications / capabilities pages. */

/* ===================== Inner banner (large-bg-wave) ===================== */
.page-banner {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   color: #fff;
   background-color: var(--navy-deep);
   background-image: url("../images/large-bg-wave.png");
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
   border-bottom-left-radius: 40px;
   border-bottom-right-radius: 40px;
   padding-top: calc(var(--header-height) + clamp(30px, 4vw, 56px));
   padding-bottom: clamp(48px, 5.5vw, 76px);
}

.page-banner-inner {
   display: grid;
   grid-template-columns: 1fr 0.92fr;
   align-items: center;
   gap: clamp(32px, 5vw, 72px);
}

.page-banner .eyebrow {
   color: var(--gold);
   margin-bottom: 12px;
}

.page-banner-title {
   font-size: clamp(2.2rem, 4.6vw, 3.5rem);
   line-height: 1.1;
   font-weight: 700;
   letter-spacing: -0.02em;
   color: #fff;
}

.page-banner-lead {
   margin-top: clamp(18px, 2.2vw, 26px);
   max-width: 62ch;
   color: rgba(245, 247, 250, 0.86);
   font-size: clamp(1rem, 1.25vw, 1.1rem);
   line-height: 1.75;
}

.page-banner-media {
   justify-self: end;
   width: 100%;
   max-width: 620px;
}

.page-banner-media img {
   width: 100%;
   height: clamp(300px, 30vw, 420px);
   object-fit: cover;
   object-position: center;
   border-radius: 22px;
   box-shadow: 0 26px 60px rgba(3, 12, 26, 0.42);
}

/* ===================== Vehicle explorer (list + detail pane) =====================
   Two-pane pattern: a vertical index of vehicles on the left drives a single
   detail panel on the right. Tabs are real buttons in a tablist, so arrow keys
   move between vehicles and the URL hash deep-links to one. */
.vehicles-main {
   background: var(--off-white);
   padding-block: clamp(46px, 5.5vw, 84px);
}

.vehicles-main-head {
   max-width: 720px;
   margin-bottom: clamp(28px, 3.2vw, 44px);
}

.vehicles-main-head .eyebrow {
   color: var(--teal-deep);
   margin-bottom: 12px;
}

.vehicles-main-head h2 {
   color: var(--ink);
   font-size: clamp(1.7rem, 2.9vw, 2.3rem);
   font-weight: 700;
   line-height: 1.2;
   letter-spacing: -0.02em;
}

.vehicles-main-head p {
   margin-top: 14px;
   color: var(--text);
   line-height: 1.8;
}

.vehicle-explorer {
   display: grid;
   grid-template-columns: minmax(280px, 350px) 1fr;
   align-items: start;
   gap: clamp(22px, 2.6vw, 40px);
}

/* ---------- Left index ---------- */
.vehicle-list {
   position: sticky;
   top: calc(var(--header-height) + 18px);
   display: flex;
   flex-direction: column;
   gap: 2px;
}

.vehicle-tab {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 14px;
   width: 100%;
   padding: 17px 18px;
   border: 0;
   border-radius: 12px;
   background: transparent;
   color: var(--navy);
   font-family: inherit;
   font-size: 0.95rem;
   font-weight: 500;
   line-height: 1.4;
   text-align: left;
   cursor: pointer;
   transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

/* Hairline between adjacent inactive items, Akima-style rhythm */
.vehicle-tab::after {
   content: "";
   position: absolute;
   left: 18px;
   right: 18px;
   bottom: 0;
   height: 1px;
   background: var(--line);
   transition: opacity .2s ease;
}

.vehicle-tab:last-child::after,
.vehicle-tab.is-active::after,
.vehicle-tab:has(+ .vehicle-tab.is-active)::after {
   opacity: 0;
}

.vehicle-tab:hover {
   color: var(--teal-deep);
}

.vehicle-tab:focus-visible {
   outline: 2px solid var(--teal);
   outline-offset: 2px;
}

.vehicle-tab.is-active {
   background: var(--white);
   color: var(--navy);
   font-weight: 700;
   box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}

.vehicle-tab-arrow {
   flex: none;
   width: 18px;
   height: 18px;
   color: var(--teal-deep);
   opacity: 0.55;
   transition: transform .2s ease, opacity .2s ease;
}

.vehicle-tab:hover .vehicle-tab-arrow,
.vehicle-tab.is-active .vehicle-tab-arrow {
   opacity: 1;
   transform: translateX(3px);
}

/* ---------- Right detail panel ---------- */
.vehicle-panel {
   min-height: 480px;
   padding: clamp(26px, 3.2vw, 52px);
   border-radius: 20px;
   background: var(--white);
   box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
}

.vehicle-panel:focus-visible {
   outline: 2px solid var(--teal);
   outline-offset: 3px;
}

/* Re-run on every tab switch so the swap reads as a change, not a redraw */
.vehicle-panel-inner {
   animation: vehiclePanelIn .28s ease both;
}

@keyframes vehiclePanelIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: none;
   }
}

@media (prefers-reduced-motion: reduce) {
   .vehicle-panel-inner {
      animation: none;
   }
}

.vehicle-panel-tag {
   display: inline-block;
   padding: 6px 14px;
   border-radius: 999px;
   background: rgba(92, 183, 170, 0.14);
   color: var(--teal-deep);
   font-size: 0.72rem;
   font-weight: 800;
   letter-spacing: 0.1em;
   text-transform: uppercase;
}

.vehicle-panel-tag[data-role="sub"] {
   background: rgba(247, 191, 90, 0.22);
   color: #8a6512;
}

.vehicle-panel-title {
   margin-top: 16px;
   padding-bottom: clamp(18px, 2vw, 24px);
   border-bottom: 1px solid var(--line);
   color: var(--ink);
   font-size: clamp(1.5rem, 2.6vw, 2.1rem);
   font-weight: 700;
   line-height: 1.18;
   letter-spacing: -0.02em;
}

.vehicle-panel-desc {
   margin-top: clamp(18px, 2vw, 26px);
   color: var(--text);
   font-size: 1rem;
   line-height: 1.85;
}

.vehicle-panel-subhead {
   margin-top: clamp(26px, 3vw, 36px);
   color: var(--navy);
   font-size: 1.15rem;
   font-weight: 700;
   letter-spacing: -0.01em;
}

.vehicle-panel-list {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 12px clamp(20px, 2.4vw, 34px);
   margin-top: 18px;
}

.vehicle-panel-list li {
   position: relative;
   padding-left: 26px;
   color: var(--text);
   font-size: 0.94rem;
   line-height: 1.7;
}

.vehicle-panel-list li::before {
   content: "";
   position: absolute;
   top: 8px;
   left: 0;
   width: 13px;
   height: 13px;
   border-radius: 50%;
   background: rgba(92, 183, 170, 0.18);
   box-shadow: inset 0 0 0 2px var(--teal);
}

.vehicle-panel-foot {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 18px;
   margin-top: clamp(28px, 3.2vw, 40px);
   padding-top: clamp(20px, 2.4vw, 28px);
   border-top: 1px solid var(--line);
}

.vehicle-panel-contract {
   display: inline-flex;
   align-items: center;
   padding: 10px 16px;
   border-radius: 10px;
   background: var(--gray-100);
   color: var(--navy);
   font-family: ui-monospace, Menlo, Consolas, monospace;
   font-size: 0.82rem;
   font-weight: 600;
   letter-spacing: 0.01em;
   line-height: 1.5;
}

.vehicle-panel-actions {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 12px;
}

.vehicle-panel-actions .btn-pill {
   height: 48px;
   padding: 0 24px;
   border-radius: 999px;
   background: var(--gold);
   border: 1px solid var(--gold);
   color: var(--navy-deep);
   font-weight: 600;
   font-size: 0.9rem;
   text-transform: none;
   letter-spacing: 0.01em;
}

.vehicle-panel-actions .btn-split:hover .btn-pill {
   background: var(--gold-deep);
   border-color: var(--gold-deep);
}

.vehicle-link-ghost {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   height: 48px;
   padding: 0 24px;
   border-radius: 999px;
   border: 1px solid var(--line);
   background: var(--white);
   color: var(--navy);
   font-weight: 600;
   font-size: 0.9rem;
   transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.vehicle-link-ghost:hover {
   background: var(--navy);
   border-color: var(--navy);
   color: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
   .page-banner-inner {
      grid-template-columns: 1fr;
      gap: clamp(34px, 5vw, 48px);
   }

   .page-banner-media {
      justify-self: stretch;
      max-width: 100%;
   }
}

/* Below this width the two panes collapse into one accordion: JS moves the
   panel under whichever row is open, so these rules restyle it as a drawer
   rather than a standalone card. */
@media (max-width: 940px) {
   .vehicle-explorer {
      grid-template-columns: 1fr;
   }

   .vehicle-list {
      position: static;
      gap: 0;
      padding: 6px;
      border-radius: 16px;
      background: var(--white);
      box-shadow: var(--shadow-card);
   }

   .vehicle-tab {
      border-radius: 10px;
      padding: 18px 16px;
   }

   .vehicle-tab.is-active {
      background: transparent;
      box-shadow: none;
      color: var(--teal-deep);
   }

   /* Chevron points down while the drawer is open */
   .vehicle-tab[aria-expanded="true"] .vehicle-tab-arrow {
      transform: rotate(90deg);
      opacity: 1;
   }

   .vehicle-panel {
      min-height: 0;
      margin: 0 6px 10px;
      padding: 4px 10px 22px;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
   }

   .vehicle-panel-title {
      font-size: clamp(1.3rem, 4.6vw, 1.6rem);
      padding-bottom: 16px;
   }

   .vehicle-panel-list {
      grid-template-columns: 1fr;
   }

   .vehicle-panel-foot {
      margin-top: 24px;
      padding-top: 20px;
   }
}

@media (max-width: 620px) {
   .page-banner {
      border-bottom-left-radius: 24px;
      border-bottom-right-radius: 24px;
   }

   .page-banner-media img {
      border-radius: 18px;
   }

   .vehicle-panel-foot {
      align-items: stretch;
      flex-direction: column;
   }

   .vehicle-panel-actions {
      flex-direction: column;
      align-items: stretch;
   }

   .vehicle-panel-actions .btn-split,
   .vehicle-link-ghost {
      width: 100%;
   }
}
