/* ============================================
   B-VEX – Global Theme
   Ionic 8 + Custom Design System
   ============================================ */

:root {
  /* Brand colours */
  --bvex-lime:       #C9D302;
  --bvex-lime-dark:  #a8b000;
  --bvex-charcoal:   #31312F;
  --bvex-offwhite:   #FAFAF7;
  --bvex-light-grey: #DFE1E2;
  --bvex-border:     #707070;

  /* Ionic overrides */
  --ion-color-primary:           var(--bvex-lime);
  --ion-color-primary-rgb:       201,211,2;
  --ion-color-primary-contrast:  var(--bvex-charcoal);
  --ion-color-primary-shade:     var(--bvex-lime-dark);
  --ion-color-primary-tint:      #d2db1f;

  --ion-background-color:        var(--bvex-offwhite);
  --ion-text-color:              var(--bvex-charcoal);
  --ion-font-family:             'Montserrat', sans-serif;

  --ion-toolbar-background:      var(--bvex-offwhite);
  --ion-toolbar-color:           var(--bvex-charcoal);

  /* Typography scale */
  --font-display:  'Montserrat', sans-serif;
  --font-serif:    'Source Serif 4', serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bvex-offwhite);
  color: var(--bvex-charcoal);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Utility ---- */
.u-lime-bg   { background: var(--bvex-lime); }
.u-dark-bg   { background: var(--bvex-charcoal); color: var(--bvex-offwhite); }
.u-grey-bg   { background: var(--bvex-light-grey); }
.u-upper     { text-transform: uppercase; letter-spacing: 0.08em; }
.u-serif     { font-family: var(--font-serif); }
.u-center    { text-align: center; }
.u-mt-md     { margin-top: var(--space-md); }

/* ---- Page wrapper ---- */
.bvex-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bvex-content {
  flex: 1;
  padding-top: 64px; /* height of the fixed header */
}

/* ---- Section ---- */
.bvex-section {
  padding: var(--space-lg) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.bvex-section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.bvex-section__header {
  margin-bottom: var(--space-md);
}

/* ---- Hero ---- */
.bvex-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bvex-charcoal);
}

.bvex-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: transform 8s ease;
}

.bvex-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md);
  max-width: 700px;
}

.bvex-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bvex-lime);
  margin-bottom: var(--space-sm);
}

.bvex-hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 var(--space-sm);
}

.bvex-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--space-md);
  font-weight: 400;
}

/* ---- Slider nav pills ---- */
.bvex-hero__nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.bvex-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.bvex-hero__dot.active {
  background: var(--bvex-lime);
  transform: scale(1.3);
}

/* ---- CTA Button ---- */
.bvex-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.bvex-btn--primary {
  background: var(--bvex-lime);
  color: var(--bvex-charcoal);
}
.bvex-btn--primary:hover {
  background: var(--bvex-lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,211,2,0.35);
}

.bvex-btn--dark {
  background: var(--bvex-charcoal);
  color: #fff;
}
.bvex-btn--dark:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.bvex-btn--outline {
  background: transparent;
  color: var(--bvex-charcoal);
  border: 2px solid var(--bvex-charcoal);
}
.bvex-btn--outline:hover {
  background: var(--bvex-charcoal);
  color: #fff;
}

/* ---- Intro block ---- */
.bvex-intro {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.bvex-intro__tag {
  display: inline-block;
  background: var(--bvex-lime);
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.bvex-intro__title {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 auto var(--space-sm);
  max-width: 800px;
}

.bvex-intro__text {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto var(--space-md);
  color: #555;
}

/* ---- Service grid ---- */
.bvex-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--bvex-border);
}

.bvex-service-card {
  background: var(--bvex-offwhite);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  color: inherit;
}

.bvex-service-card:hover,
.bvex-service-card:focus {
  background: var(--bvex-lime);
  outline: none;
}

.bvex-service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-xs);
}

.bvex-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.3;
}

.bvex-service-card__list {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #555;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bvex-service-card:hover .bvex-service-card__list,
.bvex-service-card:focus .bvex-service-card__list {
  color: var(--bvex-charcoal);
}

.bvex-service-card__arrow {
  margin-top: auto;
  width: 36px;
  height: 36px;
  background: var(--bvex-charcoal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  transition: background var(--transition);
}

.bvex-service-card:hover .bvex-service-card__arrow {
  background: var(--bvex-charcoal);
}

.bvex-service-card__arrow svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}

/* ---- Stats strip ---- */
.bvex-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bvex-charcoal);
  color: #fff;
}

.bvex-stat {
  padding: var(--space-md);
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bvex-stat:last-child { border-right: none; }

.bvex-stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--bvex-lime);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.bvex-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- References ---- */
.bvex-refs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.bvex-ref-card {
  background: #fff;
  border: 1px solid var(--bvex-light-grey);
  padding: 0;
  transition: box-shadow var(--transition);
  overflow: hidden;
}

.bvex-ref-card__body {
  padding: var(--space-md);
}

.bvex-ref-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.bvex-ref-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.bvex-ref-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.bvex-ref-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bvex-lime-dark);
  margin-bottom: 8px;
}

.bvex-ref-card__name {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}

.bvex-ref-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ---- Image with text ---- */
.bvex-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.bvex-split__img {
  height: 300px;
  object-fit: cover;
  width: 100%;
}

.bvex-split__body {
  padding: var(--space-md);
}

.bvex-split__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bvex-lime-dark);
  margin-bottom: var(--space-xs);
}

.bvex-split__title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
}

.bvex-split__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 var(--space-md);
}

/* ---- Certification strip ---- */
.bvex-certs {
  background: var(--bvex-lime);
  padding: var(--space-md);
}

.bvex-certs__title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.bvex-certs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bvex-certs__item {
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bvex-certs__item::before {
  content: '✓';
  font-weight: 900;
  flex-shrink: 0;
}

/* ---- Page hero (inner pages) ---- */
.bvex-page-hero {
  background: var(--bvex-charcoal);
  color: #fff;
  padding: calc(var(--space-xl) + 64px) var(--space-md) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.bvex-page-hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bvex-offwhite);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.bvex-page-hero__breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.bvex-page-hero__breadcrumb a {
  color: #fff;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.bvex-page-hero__breadcrumb a:hover { opacity: 1; }

.bvex-page-hero__title {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 700px;
  margin: 0;
}

.bvex-page-hero__accent {
  display: block;
  width: 60px;
  height: 5px;
  background: var(--bvex-lime);
  margin-top: var(--space-sm);
}

/* ---- Dienst detail ---- */
.bvex-detail__section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--bvex-light-grey);
}

.bvex-detail__section:last-child { border-bottom: none; }

.bvex-detail__subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bvex-lime-dark);
  margin-bottom: 6px;
}

.bvex-detail__title {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
}

.bvex-detail__body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
}

.bvex-detail__body p { margin: 0 0 var(--space-sm); }

.bvex-detail__list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
}

.bvex-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 6px 0;
  border-bottom: 1px solid var(--bvex-light-grey);
}

.bvex-detail__list li::before {
  content: '→';
  color: var(--bvex-lime-dark);
  font-weight: 900;
  flex-shrink: 0;
}

/* ---- CTA banner ---- */
.bvex-cta-banner {
  background: var(--bvex-lime);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.bvex-cta-banner__title {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
}

/* ---- Contact ---- */
.bvex-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.bvex-contact-info h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bvex-lime-dark);
  margin-bottom: var(--space-sm);
}

.bvex-contact-info p {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.bvex-contact-info a {
  color: var(--bvex-lime-dark);
  font-weight: 600;
}

/* Form */
.bvex-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bvex-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bvex-form__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bvex-form__input,
.bvex-form__select,
.bvex-form__textarea {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 2px solid var(--bvex-light-grey);
  background: #fff;
  color: var(--bvex-charcoal);
  border-radius: 0;
  width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.bvex-form__input:focus,
.bvex-form__select:focus,
.bvex-form__textarea:focus {
  outline: none;
  border-color: var(--bvex-lime);
}

.bvex-form__textarea { min-height: 120px; resize: vertical; }

.bvex-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2331312F' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ---- Map ---- */
#bvex-map {
  width: 100%;
  height: 300px;
  border: none;
}

/* ---- Vacature card ---- */
.bvex-job-card {
  background: #fff;
  border: 1px solid var(--bvex-light-grey);
  border-left: 4px solid var(--bvex-lime);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

.bvex-job-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}

.bvex-job-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 var(--space-sm);
}

/* ============================================
   Responsive breakpoints
   ============================================ */

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .bvex-services {
    grid-template-columns: 1fr 1fr;
  }

  .bvex-refs {
    grid-template-columns: 1fr 1fr;
  }

  .bvex-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .bvex-stat { border-bottom: none; }

  .bvex-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bvex-split {
    grid-template-columns: 1fr 1fr;
  }

  .bvex-split__img { height: 100%; }

  #bvex-map { height: 400px; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .bvex-services {
    grid-template-columns: repeat(3, 1fr);
  }

  .bvex-section {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .bvex-refs {
    grid-template-columns: repeat(3, 1fr);
  }

  .bvex-certs {
    padding: var(--space-lg);
  }

  .bvex-certs__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .bvex-certs__item {
    flex: 0 1 45%;
  }
}

/* Wide ≥ 1200px */
@media (min-width: 1200px) {
  .bvex-services {
    grid-template-columns: repeat(4, 1fr);
  }

  .bvex-contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-lg);
  }
}

/* ============================================
   Ionic-specific overrides
   ============================================ */

ion-header {
  --background: var(--bvex-offwhite);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

ion-toolbar {
  --padding-start: 16px;
  --padding-end: 16px;
  --min-height: 64px;
}

ion-content {
  --background: var(--bvex-offwhite);
}

ion-back-button {
  --color: var(--bvex-charcoal);
}

/* ---- Page transition ---- */
ion-nav .ion-page {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Watermark decoration ---- */
.bvex-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
  width: 40%;
  max-width: 400px;
}
