/* ==========================================================
   BVC Bikes – modern front page
   Same colour palette as before, new layout & polish
   ========================================================== */

:root {
  --green-900: #0d3b24;   /* header, footer, dark sections */
  --green-500: #27ae60;   /* accents */
  --green-400: #2ecc71;   /* hover */
  --green-700: #1e8449;   /* pressed */
  --green-btn: #004d00;
  --mint: #e9f5e9;
  --bg: #f4f4f4;
  --white: #fff;
  --text: #2b2f2d;
  --muted: #555;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 59, 36, 0.10);
  --shadow-hover: 0 16px 40px rgba(13, 59, 36, 0.18);
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Header / navbar ---------- */
header {
  background: var(--green-900);
  color: #fff;
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 100%;
}

.navbar h1 { font-size: 24px; letter-spacing: 2px; color: var(--green-500); }

.navbar ul { list-style: none; display: flex; gap: 20px; }

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}
.navbar ul li a:hover { color: var(--green-500); }

/* Dropdown navbar (loaded from navbar.html) */
#navbar-placeholder nav ul { list-style: none; display: flex; gap: 20px; padding: 0; }
#navbar-placeholder nav ul li { position: relative; }
#navbar-placeholder nav ul li a {
  color: #fff; font-weight: 600; text-decoration: none; padding: 10px 5px; display: block;
  transition: color 0.3s;
}
#navbar-placeholder nav ul li a:hover { color: var(--green-500); }

#navbar-placeholder nav ul li .submenu {
  position: absolute; top: 100%; left: 0;
  background: var(--green-900);
  border: 1px solid var(--green-500);
  border-radius: 0 0 10px 10px;
  min-width: 160px;
  display: none; flex-direction: column;
  z-index: 10000;
}
#navbar-placeholder nav ul li .submenu li a { padding: 10px; font-weight: 400; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 28px; color: #fff;
}

@media (min-width: 769px) {
  #navbar-placeholder nav ul li:hover > .submenu { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover  { background: var(--green-400); }
.btn-primary:active { background: var(--green-700); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.contact-button { /* backwards compat with old markup */
  display: inline-block; background: var(--green-btn); color: #fff;
  padding: 10px 20px; font-weight: bold; text-decoration: none; border-radius: 5px;
}

/* ---------- SVG icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn .icon { width: 18px; height: 18px; }

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--green-400);
  margin-bottom: 14px;
}
.eyebrow.dark { color: var(--green-500); }

/* ---------- Hero ---------- */
main { padding-top: var(--header-h); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 60px clamp(20px, 8vw, 120px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.background-images { position: absolute; inset: 0; z-index: -2; }

.background-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}
.background-image.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 59, 36, 0.92) 0%, rgba(13, 59, 36, 0.65) 45%, rgba(13, 59, 36, 0.15) 100%);
}

.hero-content { max-width: 640px; }

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-content h1 span { color: var(--green-500); }

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #ecf3ee;
  max-width: 52ch;
}

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

.open-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.open-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #999; }
.open-status.open   .dot { background: var(--green-400); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); animation: pulse 2s infinite; }
.open-status.closed .dot { background: #e74c3c; }

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-dots {
  position: absolute; bottom: 28px; right: clamp(20px, 8vw, 120px);
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.hero-dots button.active { background: var(--green-500); width: 28px; border-radius: 6px; }

/* ---------- USP strip ---------- */
.usp {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: -50px auto 0;
  padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.usp-item {
  background: var(--white);
  padding: 24px 22px;
  border-bottom: 4px solid var(--green-500);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.usp-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.usp-item:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.usp-item strong { color: var(--green-900); font-size: 1rem; }
.usp-item span   { color: var(--muted); font-size: 0.875rem; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 20px; }
.section-mint { background: var(--mint); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-900); }
.section-head p  { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-head::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 22px auto 0;
  background: var(--green-500); border-radius: 4px;
}
/* ---------- Brand grid ---------- */
.brand-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* each row centers itself */
  gap: 22px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 0 1 190px;
  min-height: 200px;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e6ece8;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-card img { width: 100%; height: 90px; object-fit: contain; }

/* brand name label, normal cards only */
.brand-card:not(.brand-card--own) > span {
  font-weight: 700;
  color: var(--green-900);
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-500);
}

/* ---------- Featured own-brand card ---------- */
.brand-card--own {
  position: relative;
  flex: 0 1 402px;
  flex-direction: row;
  gap: 22px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(39, 174, 96, 0.35), transparent 55%),
    var(--green-900);
  border: 2px solid var(--green-500);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15), var(--shadow-hover);
  overflow: hidden;
}

.brand-card--own:hover {
  transform: translateY(-8px);
  border-color: var(--green-400);
  box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.22), 0 20px 46px rgba(13, 59, 36, 0.35);
}

/* soft shine that sweeps across on hover */
.brand-card--own::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}
.brand-card--own:hover::after { left: 130%; }

/* "Eigen merk" corner tag */
.own-badge {
  position: absolute;
  top: 0; right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green-500);
  border-radius: 0 0 0 12px;
}
.own-badge .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* white tile so the logo stays readable on the dark background */
.own-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.brand-card--own .own-logo img { width: 100%; height: 100%; object-fit: contain; }

.own-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.brand-card--own .own-text strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  color: #fff;
}
.own-text p { margin: 0; font-size: 0.9rem; color: #dfeae3; }

.own-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--bg);
}
.own-link .icon { width: 18px; height: 18px; transition: transform 0.3s ease; }
.brand-card--own:hover .own-link .icon { transform: translateX(6px); }

/* ---------- Mobile: every brand card has the same width ---------- */
@media (max-width: 600px) {
  .brand-grid,
  .brand-row { gap: 14px; }

  .brand-card,
  .brand-card--own {
    flex: 1 1 100%;
    max-width: 360px;        /* same width for all cards, centered */
  }

  .brand-card { min-height: 170px; }

  .brand-card--own {
    min-height: 0;
    flex-direction: column;
    padding: 44px 24px 26px;
  }
  .own-text { align-items: center; text-align: center; }
  .own-logo { width: 130px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card,
  .brand-card--own::after,
  .own-link .icon { transition: none; }
}
/* ---------- Split (repairs) ---------- */
.split {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.split-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-900); margin-bottom: 16px; }
.split-text p  { color: var(--muted); font-size: 1.05rem; }

.check-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.mini-card:hover { transform: translateY(-4px); }
.mini-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-500);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.mini-icon .icon { width: 24px; height: 24px; }
.mini-card:hover .mini-icon {
  background: var(--green-500);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.mini-card h3 { font-size: 1rem; color: var(--green-900); margin-bottom: 4px; }
.mini-card p  { font-size: 0.875rem; color: var(--muted); }

/* ---------- Hours + map ---------- */
.hours-wrap {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch;
}
.hours-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 8px;
}
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 14px 22px;
  border-radius: 10px;
  color: var(--muted);
}
.hours-list li + li { border-top: 1px solid #eef2ef; }
.hours-list li.closed span:last-child { color: #a33; }
.hours-list li.today {
  background: var(--mint);
  color: var(--green-900);
  font-weight: 700;
  border-top-color: transparent;
  box-shadow: inset 4px 0 0 var(--green-500);
}

.map-card {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-address {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--green-900); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-size: 0.875rem; line-height: 1.4;
  border-left: 4px solid var(--green-500);
}

/* ---------- News ---------- */
#news-holder {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
#news-holder > * {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-500);
}
#news-holder img { border-radius: 10px; margin-bottom: 12px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(39, 174, 96, 0.35), transparent 45%),
    var(--green-900);
  color: #fff;
  padding: clamp(60px, 9vw, 100px) 20px;
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-500); }
.cta p  { margin-top: 14px; color: #dfeae3; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---------- Footer (no longer fixed over the content) ---------- */
footer {
  background: var(--green-900);
  color: #fff;
  text-align: center;
  padding: 24px 20px;
  border-top: 5px solid var(--green-500);
}
footer p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background-color: var(--green-900); color: #fff;
  padding: 15px 20px; text-align: center;
  z-index: 9999; display: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  border-top: 5px solid var(--green-500);
}
#cookie-banner p { margin: 0 0 10px 0; font-size: 16px; }

.cookie-buttons { display: flex; justify-content: center; gap: 15px; }
.cookie-buttons button {
  background-color: var(--green-500); color: #fff; border: none;
  padding: 8px 16px; font-weight: bold; border-radius: 8px; cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.cookie-buttons button:hover  { background-color: var(--green-400); transform: scale(1.05); }
.cookie-buttons button:active { background-color: var(--green-700); transform: scale(0.95); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .usp { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -40px; }
  .usp-item, .usp-item:first-child, .usp-item:last-child { border-radius: var(--radius); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hours-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: 82vh; padding: 50px 22px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(13, 59, 36, 0.75) 0%, rgba(13, 59, 36, 0.9) 100%);
  }
  .hero-dots { left: 22px; right: auto; }
  .split-cards { grid-template-columns: 1fr 1fr; }

  .navbar { padding: 0 15px; }
  .navbar ul { flex-direction: column; align-items: flex-start; }

  .menu-toggle {
    display: block;
    position: absolute; top: 12px; right: 20px; z-index: 10001;
  }

  #navbar-placeholder nav ul {
    display: none;
    position: absolute; top: var(--header-h); left: 0;
    flex-direction: column; width: 100%;
    background: var(--green-900);
    z-index: 9999;
  }
  #navbar-placeholder nav ul.show { display: flex; }
  #navbar-placeholder nav ul li { border-top: 1px solid var(--green-500); }
  #navbar-placeholder nav ul li a { padding: 15px 20px; }

  #navbar-placeholder nav ul li .submenu {
    position: relative; top: auto; left: auto;
    border: none; background: none; min-width: auto;
    display: none; padding-left: 20px;
  }
  #navbar-placeholder nav ul li.active > .submenu { display: flex; flex-direction: column; }
  #navbar-placeholder nav ul li .submenu li a { padding-left: 40px; }
}

@media (max-width: 480px) {
  .usp { grid-template-columns: 1fr; }
  .split-cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .background-image { transition: opacity 0.3s; transform: none; }
  .open-status.open .dot { animation: none; }
}
