/* ==============================================
   LEEUW COMPACT KRAAN — Volledige Huisstijl
   Bootstrap 5 overrides + eigen componenten
   ============================================== */


/* --- Custom properties --- */
:root {
  --red:        #C8102E;
  --red-dark:   #A50E26;
  --red-light:  #F9E8EB;
  --white:      #FFFFFF;
  --off-white:  #F7F5F5;
  --gray-light: #EFEFEF;
  --gray-mid:   #6B6B6B;
  --dark:       #1A1A1A;
  --font-head:  'Barlow', sans-serif;
  --font-body:  'Barlow', sans-serif;
}

/* --- Basis --- */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
}
h1, h2, h3, h4, h5, .navbar-brand, .btn {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2 {
  font-weight: 800;
}
.btn {
  font-weight: 700;
}

/* --- Bootstrap kleur-overrides --- */
.btn-primary               { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover,
.btn-primary:focus         { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline-primary       { border-color: var(--red); color: var(--red); }
.btn-outline-primary:hover { background: var(--red); color: #fff; }
.btn-light                 { background: #fff; color: var(--dark); }
.btn-light:hover           { background: var(--gray-light); }
.text-primary              { color: var(--red) !important; }
.bg-primary                { background: var(--red) !important; }
a                          { color: var(--red); }
a:hover                    { color: var(--red-dark); }

/* --- Navigatie --- */
.navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 16px 0;
}
.navbar.scrolled {
  background: var(--dark) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  padding: 10px 0;
}
.navbar-brand img          { height: 85px; transition: height 0.3s; }
.navbar.scrolled .navbar-brand img { height: 65px; }
.nav-link                  { font-family: var(--font-head); font-size: 1rem;
                              color: rgba(255,255,255,0.9) !important; letter-spacing: 0.04em; }
.nav-link:hover,
.nav-link.active           { color: var(--red) !important; }
.navbar-toggler {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: 0;
}
.navbar-toggler:focus      { box-shadow: none; outline: none; }
.navbar-toggler-icon       { width: 22px; height: 22px; filter: invert(1); background-size: 100% 100%; flex-shrink: 0; }
.dropdown-menu             { background: var(--dark); border: none; border-top: 3px solid var(--red); border-radius: 0; }
.dropdown-item             { font-family: var(--font-head); color: rgba(255,255,255,0.85); padding: 10px 20px; }
.dropdown-item:hover       { background: var(--red); color: #fff; }
.btn-nav-cta               { background: var(--red); color: #fff !important; padding: 8px 20px !important;
                              border-radius: 2px; margin-left: 12px; white-space: nowrap; }
.btn-nav-cta:hover         { background: var(--red-dark) !important; }
@media (max-width: 991px) {
  html { height: 100%; overflow: hidden; }
  body { height: 100%; overflow-y: auto; }
  .navbar {
    background: var(--dark) !important;
  }
  .navbar > .container {
    padding-left: 16px;
    padding-right: 24px;
  }
  .navbar-collapse {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }
  .btn-nav-cta {
    margin-left: 0;
    margin-top: 12px;
    display: block;
    text-align: center;
    padding: 12px 20px !important;
    border-radius: 4px;
  }
}

/* Dropdown hover op desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .navbar .dropdown-toggle::after { transition: transform 0.2s; }
  .navbar .dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
}

/* Logo in navbar */
.navbar-brand img { border-radius: 4px; }
@media (max-width: 767px) {
  .navbar-brand img { height: 55px; }
  .navbar.scrolled .navbar-brand img { height: 45px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-link { font-size: 0.88rem; letter-spacing: 0.02em; }
  .btn-nav-cta { margin-left: 6px; padding: 6px 14px !important; font-size: 0.88rem; }
}

/* Niet-hero pagina's: navbar altijd donker + ruimte voor fixed navbar */
body.no-hero .navbar       { background: var(--dark); }
body.no-hero               { padding-top: 80px; }

/* --- Sectie-titels --- */
.section-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-top: 12px;
}
.section-title.centered::after { margin: 12px auto 0; }
.section-subtitle {
  color: var(--gray-mid);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.pre-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.hero-content .pre-title {
  color: #fff;
  background: var(--red);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 2px;
  font-weight: 600;
}
.hero-content .trust-signals {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

/* --- Hero (volledige viewport) --- */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center 60%;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26,26,26,0.65), rgba(26,26,26,0.50));
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-content .subline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Stats-balk onder hero */
.stats-bar {
  background: var(--dark);
  padding: 18px 0;
  border-top: 3px solid var(--red);
}
.stats-bar .stat-item {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats-bar .stat-item i { color: var(--red); font-size: 1.1rem; }

/* Smalle pagina-hero (subpagina's) */
.page-hero {
  background: var(--dark);
  padding: 130px 0 50px;
  color: #fff;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-mid); }
.breadcrumb-item a { color: var(--red); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }

/* --- Secties wisselende achtergrond --- */
.section-white    { background: var(--white); padding: 80px 0; }
.section-off      { background: var(--off-white); padding: 80px 0; }
.section-gray     { background: var(--gray-light); padding: 80px 0; }
.section-dark     { background: var(--dark); padding: 80px 0; color: #fff; }

/* --- Machine-kaarten (homepage + machines/index) --- */
.machine-card {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.machine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(200,16,46,0.18);
}
.machine-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--off-white);
  padding: 12px;
}
.machine-card { display: flex; flex-direction: column; }
.machine-card .card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.machine-card .card-body p { flex-grow: 1; }
.machine-card .card-link { margin-top: auto; }
.machine-card .card-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.machine-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.machine-badge.dark { background: var(--dark); }
.spec-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 0.9rem;
  color: var(--gray-mid);
}
.spec-inline span { display: flex; align-items: center; gap: 5px; }
.spec-inline i { color: var(--red); }
.card-link {
  font-family: var(--font-head);
  color: var(--red);
  text-decoration: none;
  font-size: 0.95rem;
}
.card-link:hover { color: var(--red-dark); }

/* --- Specs-lijst (machine-detailpagina's) --- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .spec-label {
  color: var(--gray-mid);
  min-width: 200px;
  flex-shrink: 0;
}
.spec-list .spec-value { font-weight: 500; }
.spec-icon-lg { color: var(--red); font-size: 1.4rem; margin-right: 4px; }

/* Machine detail page images — consistent sizing */
.machine-hero-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--off-white);
  border-radius: 4px;
  padding: 16px;
}

/* Specificatietabel */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th {
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.spec-table td { padding: 10px 16px; font-size: 0.95rem; }
.spec-table tr:nth-child(even) { background: var(--gray-light); }
.spec-table tr:hover { background: var(--red-light); }

/* --- Toepassingen grid --- */
.toepassing-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .toepassing-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
.toepassing-icon-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.toepassing-icon-item:hover { background: rgba(200,16,46,0.15); }
.toepassing-icon-item .icon { font-size: 2rem; margin-bottom: 10px; }
.toepassing-icon-item span {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

/* Toepassingskaarten (toepassingen.html) */
.toepassing-card {
  background: var(--white);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.toepassing-card .card-link {
  margin-top: auto;
}
.toepassing-card .icon-circle {
  width: 64px; height: 64px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.toepassing-card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 12px; }
.machine-advice {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 2px;
  margin-top: 12px;
}

/* --- Projecten-grid --- */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-item:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-item:hover .project-overlay { opacity: 1; }
.project-overlay h3,
.project-overlay p,
.machine-tag { display: none; }

/* --- CTA-banner (rood) --- */
.cta-banner {
  background: var(--red);
  padding: 60px 0;
  color: #fff;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-banner p  { font-size: 1.1rem; opacity: 0.9; }
.cta-banner .btn {
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-width: 2px;
}
.cta-banner .btn-light {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.cta-banner .btn-light:hover {
  background: var(--off-white);
  color: var(--red-dark);
}
.cta-banner .btn-outline-light {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.cta-banner .btn-outline-light:hover {
  background: #fff;
  color: var(--red);
}

/* --- Kernwaarden --- */
.kernwaarde-item { text-align: center; padding: 32px 24px; }
.kernwaarde-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 16px;
}
.kernwaarde-item h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; }

/* --- Diensten-kaarten --- */
.dienst-card {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.dienst-card h2 { font-family: var(--font-head); font-size: 1.4rem; }
.dienst-card .dienst-icon { font-size: 2rem; color: var(--red); margin-bottom: 10px; }
.dienst-card .btn { align-self: flex-start; }
.usp-list { list-style: none; padding: 0; }
.usp-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}
.usp-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
footer h5 {
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: var(--red); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 48px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px; font-size: 0.9rem;
}
.footer-contact-item i { color: var(--red); margin-top: 3px; flex-shrink: 0; }

/* --- Vergelijkingstabel (machines/index.html) --- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  padding: 14px 16px;
  text-align: center;
}
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 12px 16px; font-size: 0.9rem; text-align: center; border-bottom: 1px solid var(--gray-light); }
.compare-table td:first-child { font-family: var(--font-head); text-align: left; color: var(--gray-mid); font-size: 0.85rem; }
.compare-table .highlight-row { background: var(--red-light); }
.compare-table .check { color: var(--red); font-size: 1.1rem; }
.compare-table .dash { color: var(--gray-mid); }

/* --- Sticky Mobile CTA Bar --- */
/* Old footer-loaded version — hidden to avoid duplicate with static inline version */
.sticky-mobile-cta {
  display: flex !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  border-top: 3px solid #C8102E;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
@media (min-width: 992px) {
  .sticky-mobile-cta { display: none !important; }
}
.sticky-mobile-cta .btn {
  flex: 1;
  border-radius: 0;
  padding: 14px 8px;
  font-size: 0.95rem;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.sticky-mobile-cta .btn-primary {
  background: #C8102E !important;
  border-color: #C8102E !important;
}

/* --- Touch target minimum (44x44px) --- */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Prevent footer content from being hidden behind sticky bar on mobile */
@media (max-width: 991px) {
  body { padding-bottom: 0; }
  footer { padding-bottom: 60px; }
}

/* --- Responsive aanpassingen --- */
@media (max-width: 991px) {
  .section-white, .section-off, .section-gray, .section-dark { padding: 56px 0; }
  .hero-content h1 { font-size: 2.4rem; }
  .stats-bar .stat-item { font-size: 0.82rem; }
}
@media (max-width: 767px) {
  .section-white, .section-off, .section-gray, .section-dark { padding: 40px 0; }
  .section-title { font-size: 1.8rem; }
  .cta-banner { padding: 40px 0; }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner .btn { width: 100%; margin-bottom: 8px; }
  .cta-banner .btn.me-2 { margin-right: 0 !important; }
  .dienst-card { padding: 24px; }

  /* Over-ons banner mobile */
  .section-off .container-fluid img { max-height: 250px !important; }

  /* Hero mobile */
  .hero-section { min-height: 100vh; background-position: center 60%; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content .subline { font-size: 0.95rem; margin-bottom: 1rem; }
  .hero-content .d-flex.gap-3 {
    justify-content: center;
  }
  .hero-content .btn-lg {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .trust-signals { font-size: 0.75rem; }

  /* Stats bar mobile */
  .stats-bar { padding: 12px 0; }
  .stats-bar .row { justify-content: center; }
  .stats-bar .col-6 {
    display: flex;
    justify-content: center;
    text-align: center;
  }
  .stats-bar .stat-item {
    font-size: 0.72rem;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stats-bar .stat-item i { font-size: 1rem; }

  /* Icons section mobile centering */
  .section-off .row .col-4 {
    display: flex;
    justify-content: center;
  }
  .section-off .row .col-4 .p-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-off .row .col-4 .h6 {
    font-size: 0.72rem;
    line-height: 1.2;
  }
}
