/* ===== Traansi — Base ===== */
:root {
  --black: #0a0a0a;
  --black-2: #111214;
  --black-3: #16181b;
  --white: #f7f7f5;
  --grey-text: #9ba0a6;
  --accent: #b7b7b7;
  --accent-dim: rgba(183, 183, 183, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --container: 1180px;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
h4 { font-size: 1rem; margin-bottom: 4px; }

p { color: #fff; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead { font-size: 1.05rem; margin-top: 10px; max-width: 620px; }
.lead.center { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 183, 183, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgb(255 255 255);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  color: var(--grey-text);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: #00000061;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions.center { justify-content: center; }

/* Quote widget card */
.quote-card {
  background: rgb(22 24 27 / 65%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.quote-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 10px;
}

.quote-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  color: #ffffff;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: normal;
  text-align: center;
}

.quote-tab .tab-icon svg { width: 70%; height: 70%; }

.quote-tab .tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 16vw, 72px);
  height: clamp(44px, 16vw, 72px);
  border-radius: 12px;
  overflow: hidden;
}

.quote-tab .tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.field span {
  font-size: 0.78rem;
  color: #ffffff;
  font-weight: 500;
}

.field input {
  background: 1px solid rgb(255 255 255 / 61%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.field input::placeholder { color: #6b7075; }
.field input:focus { outline: none; border-color: var(--accent); }

.field-row {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.field-note {
  font-size: 0.78rem;
  text-align: center;
  color: var(--grey-text);
  margin: 0;
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--black-2); }

.section > .container { position: relative; z-index: 1; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.split-left h2 { max-width: 480px; }

.split-right { display: flex; flex-direction: column; gap: 20px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.step {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 10px;
}

.step h3 { color: var(--white); }
.step p { font-size: 0.92rem; }

/* ===== Cards ===== */
.info-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.info-card h3 { color: var(--white); }

.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.grid > *, .split > *, .steps > * { min-width: 0; }

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.tight { margin-top: 0; }

.feature-card {
  background: #16181ba6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 183, 183, 0.35);
}

.feature-card h3 { color: var(--white); font-size: 1.05rem; }
.feature-card p { font-size: 0.92rem; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  margin-bottom: 18px;
}

.icon-badge svg { width: 22px; height: 22px; }

.icon-badge.accent {
  background: var(--accent-dim);
  color: var(--accent);
}

.mini-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.mini-card h4 { color: var(--white); }
.mini-card p { font-size: 0.88rem; margin: 0; }

.mini-card.dark {
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,0.14);
}

.center-cta {
  text-align: center;
  margin-top: 44px;
}

/* Pay tags */
.pay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pay-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--white);
}

/* Square image (e.g. under pay-tags) */
.square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 24px;
}

/* When a split column's image should stretch to match the other column's height */
.equal-height { align-items: stretch; }
.equal-height .split-left { display: flex; flex-direction: column; }
.equal-height .square-image {
  flex: 1;
  aspect-ratio: unset;
  min-height: 0;
}

.square-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icon + text row list (e.g. Body Types) */
.icon-row-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 36px;
}

.icon-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon-row .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.icon-row .icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.icon-row h3 { color: var(--white); }
.icon-row p { font-size: 0.92rem; margin: 0; }

/* Side image filling a split column */
.side-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equal-height .split-right { display: flex; }
.equal-height .side-image { flex: 1; }

/* Business image */
.business-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.business-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== Coverage section ===== */
.coverage {
  position: relative;
  overflow: hidden;
}

.coverage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.coverage-scrim {
  position: absolute;
  inset: 0;
  background: #00000096;
}

/* ===== Generic photo-backed section (reused by Drivers, Why Now, page headers) ===== */
.section-photo { overflow: hidden; }

.bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: #00000096;;
}

/* Fixed-attachment parallax backdrop (Hero, Drive With Us, Where We Operate) */
.bg-fixed {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Closing / final CTA ===== */
.closing {
  position: relative;
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.hero-mark {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 6px auto 16px;
}

.closing .lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 34px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-6 { width: 500px; height: 500px; top: -220px; left: 50%; transform: translateX(-50%); background: var(--accent); opacity: 0.18; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-logo { height: 28px; width: auto; object-fit: contain; margin-bottom: 14px; margin-right: auto; display: block; text-align: left; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col a, .footer-col span { margin-bottom: 10px; }
.footer-brand-col p { font-size: 0.88rem; max-width: 280px; }

.site-footer p, .site-footer a, .footer-col span {
  font-size: 0.85rem;
  color: var(--grey-text);
}

.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

/* ===== Form fields (select / textarea) ===== */
.field select,
.field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
}

.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239ba0a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ===== Simple page header (contact page) ===== */
.page-header {
  position: relative;
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--border);
}

.page-header > .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

/* ===== Driver application form ===== */
.form-subhead {
  margin: 44px 0 20px;
}

.form-subhead:first-child { margin-top: 0; }

.form-subhead h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.form-subhead p {
  font-size: 0.9rem;
  margin: 0;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.upload-item.has-file { border-color: rgba(183, 183, 183, 0.4); }

.upload-info h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-info p {
  font-size: 0.82rem;
  margin: 0;
}

.doc-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-tag.required {
  background: var(--accent-dim);
  color: var(--accent);
}

.doc-tag.optional {
  background: rgba(255, 255, 255, 0.08);
  color: var(--grey-text);
}

.upload-control {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.upload-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.upload-control:hover .upload-btn,
.upload-control input[type="file"]:focus + .upload-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.upload-filename {
  font-size: 0.78rem;
  color: var(--grey-text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item.has-file .upload-filename { color: var(--accent); }

.form-error {
  display: none;
  color: #ff8a8a;
  font-size: 0.85rem;
  margin-top: 18px;
  text-align: center;
}

.form-error.visible { display: block; }

@media (max-width: 640px) {
  .upload-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .upload-control { width: 100%; justify-content: space-between; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Noise overlay for texture, subtle */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 70px 0; }
  .page-header { padding: 120px 0 40px; }
  .bg-fixed { background-attachment: scroll; }
}

/* ===== Instant quote invoice modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-card h3 { margin-bottom: 20px; }

.invoice-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--grey-text);
}

.invoice-row span:last-child { color: var(--white); text-align: right; }

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  font-size: 1rem;
}

.invoice-total strong { font-family: var(--font-head); font-size: 1.4rem; }

.invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.invoice-actions .btn { width: 100%; }

.pac-el-wrap { display: block; }
gmp-place-autocomplete.pac-element {
  width: 100%;
  --gmp-mat-color-surface: #fff; /* match your field background */
}