/*
Theme Name: MyVendor Child
Theme URI: https://myvendor.info
Author: MyVendor
Description: Child theme for Vendors & Consumers landing page
Version: 1.0
Template: twentytwentyfive
Text Domain: myvendor-child
*/

/* ========== Base Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.5; color: #111; }

/* ========== Navigation ========== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.5); /* matches hero overlay */
  backdrop-filter: saturate(140%) blur(6px);
}
.logo { color: #fff; font-weight: 700; letter-spacing: 0.25px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}
nav a:hover {
  color: #1b5bf7;
}

/* ========== Hero Section Fix ========== */
.hero-video {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-video .hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay content */
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-overlay h1,
.hero-overlay p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}

/* Inline form styling */
.driver-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 400px;
  margin-top: 1rem;
}

.driver-inline-form input,
.driver-inline-form select {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.95);
  color: #111;
  flex: 1 1 auto;
}

.driver-inline-form button {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: #1b5bf7;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.driver-inline-form button:hover {
  background: #1545b0;
}

/* ========== Mobile Optimization ========== */
@media (max-width: 600px) {
  .driver-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .driver-inline-form input,
  .driver-inline-form select,
  .driver-inline-form button {
    width: 100%;
  }

  .hero-overlay {
    padding: 1.5rem 1rem;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }
}
/* ========== Inline Form ========== */
.hero-form {
  max-width: 420px;
  margin: 0 auto;
}
.driver-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 400px;
  margin: 0.75rem auto 0;
}
.driver-inline-form input,
.driver-inline-form select,
.driver-inline-form button {
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.95);
  color: #111;
  flex: 0 0 auto;
}
.driver-inline-form input::placeholder { color: #666; }
.driver-inline-form button {
  background: #1b5bf7;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 14px;
}
.driver-inline-form button:hover {
  background: #1545b0;
}/* Tabs */
.tabs {
  list-style: none;
  padding: 0;
  display: flex;
  border-bottom: 2px solid #ccc;
  flex-wrap: wrap;
}
.tabs li { margin-right: 10px; }
.tabs a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  color: #333;
}
.tabs a.active { background: #fff; font-weight: bold; }

.tab-content {
  display: none;
  padding: 15px;
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
}
.tab-content.active { display: block; }

/* Timeline */
.timeline {
  position: relative;
  margin: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ccc;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}
.timeline-icon {
  flex: 0 0 40px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
}
.timeline-content {
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  flex: 1;
}
.timeline-content h3 { margin: 0 0 5px; font-size: 16px; }
.timeline-date { font-size: 12px; color: #666; }

/* Responsive */
@media (max-width: 768px) {
  .tabs { flex-direction: column; border-bottom: none; }
  .tabs li { margin: 0 0 5px 0; }
  .tabs a { border-radius: 5px; border-bottom: 1px solid #ccc; }
}
@media (max-width: 480px) {
  .tabs a, .tab-content { padding: 10px; font-size: 14px; }
}

/* ========== How It Works Section ========== */
.how-it-works {
  padding: 3rem 1rem;
  background: #f9f9f9;
  text-align: center;
}
.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #111;
}
.how-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.how-columns > div {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: left;
}
.how-columns h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b5bf7;
}
.how-columns ul {
  margin: 0.75rem 0 0 1rem;
  padding: 0;
}
.how-columns li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* ========== Footer ========== */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}
.site-footer a {
  color: #1b5bf7;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ========== Responsive Tweaks ========== */
@media (max-width: 768px) {
  nav { flex-direction: column; align-items: flex-start; }
  nav ul { flex-direction: column; gap: 0.5rem; }
  .hero-overlay h1 { font-size: 1.8rem; }
  .how-columns { flex-direction: column; }
}/* Ensure video stays behind everything */
.hero-video {
  position: relative;
  overflow: hidden;
}

.hero-video .hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0; /* keep video at the back */
}

/* Overlay content */
.hero-overlay {
  position: relative;
  z-index: 1; /* sits above video */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
  background: rgba(0,0,0,0.45); /* semi-transparent dark layer */
  border-radius: 8px;
  max-width: 720px;
  margin: 0 auto;
}