/* ==========================================================================
   Elekthree — production overrides
   Loaded after css/css.css. Production styling overrides for the original theme.
   ========================================================================== */

:root {
  --navy: #2C3E50;
  --navy-deep: #233140;
  --accent: #043D8D;
  --accent-dark: #032e6b;
}

/* ---------- 1. Typography ------------------------------------------------ */

body {
  font-size: 17px;
  line-height: 1.65;
  color: #2f3438;
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: 18px;
  line-height: 1.65;
}

p.big {
  font-size: 19px;
  line-height: 1.62;
  margin-bottom: 18px;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.02em;
}

section h2 {
  font-size: 2.5em;
}

@media (max-width: 767px) {
  section h2 { font-size: 1.9em; }
  p, p.big { font-size: 17px; }
}

/* ---------- 2. Accent colour: teal -> elekthree blue --------------------- */

a,
a:hover,
a:focus,
a:active,
a.active {
  color: var(--accent);
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-brand:active,
.navbar-custom .navbar-brand.active {
  color: #cfd9e6;
}

.navbar-custom .navbar-nav li a:hover {
  color: #ffffff;
  background: var(--accent);
}

.navbar-custom .navbar-nav li.active a,
.navbar-custom .navbar-nav li.active a:hover,
.navbar-custom .navbar-nav li.active a:focus,
.navbar-custom .navbar-nav li.active a:active {
  background: var(--accent);
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: var(--accent);
  border-color: var(--accent);
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-success {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

hr.bolt2:after,
hr.star-light:after {
  background-color: var(--accent);
}

/* ---------- 3. Header / hero -------------------------------------------- */

header.header {
  position: relative;
  padding: 0;
  margin: 0;
  background: var(--navy-deep);
  line-height: 0;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* keep the fixed navbar from covering the top of the hero */
@media (min-width: 768px) {
  header.header { padding-top: 100px; }
}

/* --- Option A: photo with a caption bar underneath ---------------------- */

.hero-a .hero-photo {
  max-height: 560px;
  object-fit: cover;
}

.hero-a .hero-bar {
  background: var(--navy);
  line-height: 1.4;
}

.hero-a .hero-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.hero-bar-title {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.13em;
  color: #cfd9e6;
}

.hero-bar-phone {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.hero-bar-phone:hover,
.hero-bar-phone:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .hero-a .hero-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero-bar-title { font-size: 11px; letter-spacing: 0.1em; }
  .hero-bar-phone { font-size: 17px; }
}

/* --- Option B: navy panel next to the photo ----------------------------- */

.hero-b .hero-split {
  display: flex;
  align-items: stretch;
  background: var(--navy);
  line-height: 1.5;
}

.hero-b .hero-panel {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 40px;
  color: #fff;
}

.hero-b .hero-panel-name {
  margin: 0 0 6px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2em;
  letter-spacing: 0.04em;
  color: #fff;
}

.hero-b .hero-panel-line {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: #cfd9e6;
}

.hero-b .hero-panel-phone {
  align-self: flex-start;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
}

.hero-b .hero-panel-phone:hover,
.hero-b .hero-panel-phone:focus {
  color: #fff;
  border-bottom-color: #fff;
}

.hero-b .hero-photo-wrap {
  flex: 1 1 auto;
  overflow: hidden;
}

.hero-b .hero-photo {
  height: 440px;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 767px) {
  .hero-b .hero-split { flex-direction: column-reverse; }
  .hero-b .hero-panel { flex: 1 1 auto; padding: 26px 20px; }
  .hero-b .hero-panel-name { font-size: 1.5em; }
  .hero-b .hero-photo { height: 240px; }
}

/* --- Option C: photo only, cropped to a banner -------------------------- */

.hero-c .hero-photo {
  height: 520px;
  object-fit: cover;
  object-position: center 45%;
}

@media (max-width: 767px) {
  .hero-c .hero-photo { height: 300px; }
}

/* --- New simple transition options: decorative CSS background ----------- */

header.hero-transition {
  min-height: 560px;
  background-image: url("../img/bg3-1600.jpg");
  background-repeat: no-repeat;
  background-position: center 43%;
  background-size: cover;
  line-height: normal;
}

/* Option 1: Over ons rises over the lower part of the photograph. */
.hero-overlap {
  height: 680px;
}

.overons-overlap {
  padding: 0 0 86px;
  background: #f4f7fa;
}

.overons-overlap > .container {
  position: relative;
  z-index: 3;
  margin-top: -126px;
}

.overons-surface {
  padding: 48px 28px 38px;
  border-top: 4px solid var(--navy);
  border-radius: 12px 12px 4px 4px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(26, 46, 66, 0.16);
}

.overons-surface .overons-copy {
  margin-top: 2px;
}

/* Option 2: a clean diagonal cut transitions directly into Over ons. */
.hero-diagonal {
  height: 650px;
}

.overons-diagonal {
  position: relative;
  z-index: 3;
  margin-top: -112px;
  padding: 164px 0 86px;
  background: #fff;
  clip-path: polygon(0 112px, 100% 0, 100% 100%, 0 100%);
}

.overons-diagonal .overons-copy {
  margin-top: 2px;
}

@media (max-width: 767px) {
  header.hero-transition {
    min-height: 0;
    height: 430px;
    background-position: 52% center;
  }

  .overons-overlap {
    padding-bottom: 62px;
  }

  .overons-overlap > .container {
    margin-top: -64px;
  }

  .overons-surface {
    margin: 0 7px;
    padding: 34px 10px 24px;
    border-radius: 9px 9px 3px 3px;
  }

  .hero-diagonal {
    height: 440px;
  }

  .overons-diagonal {
    margin-top: -58px;
    padding: 105px 0 62px;
    clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  }
}

/* --- Transparent gradient hero transitions ------------------------------ */

header.hero-gradient {
  position: relative;
  height: 710px;
  overflow: hidden;
}

header.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.overons-gradient {
  position: relative;
  z-index: 3;
  padding-bottom: 86px;
}

.overons-gradient > .container {
  position: relative;
  z-index: 2;
}

.overons-gradient .overons-copy {
  margin-top: 28px;
}

/* Option 1: the photograph dissolves naturally into white. */
header.hero-gradient-white::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 56%,
    rgba(255, 255, 255, 0.14) 68%,
    rgba(255, 255, 255, 0.78) 86%,
    #fff 100%
  );
}

section.overons-gradient-white {
  margin-top: -165px;
  padding-top: 58px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 165px);
}

/* Option 2: a transparent navy wash bridges photo and white content. */
header.hero-gradient-navy::after {
  background: linear-gradient(
    to bottom,
    rgba(4, 61, 141, 0) 44%,
    rgba(4, 61, 141, 0.2) 61%,
    rgba(4, 61, 141, 0.9) 100%
  );
}

section.overons-gradient-navy {
  margin-top: -190px;
  padding-top: 44px;
  background: linear-gradient(to bottom, rgba(4, 61, 141, 0) 0, rgba(4, 61, 141, 0) 92px, #fff 190px);
}

.overons-gradient-navy .overons-gradient-heading h2 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.overons-gradient-navy .overons-gradient-heading hr.bolt1 {
  border-color: rgba(255, 255, 255, 0.72);
}

.overons-gradient-navy .overons-copy {
  margin-top: 108px;
}

/* Option 3: an asymmetric veil keeps more of the photograph visible. */
header.hero-gradient-side::after {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 37%, rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0.92) 79%, #fff 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.86) 100%);
}

section.overons-gradient-side {
  margin-top: -190px;
  padding-top: 58px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 190px);
}

.overons-gradient-side .overons-copy {
  margin-top: 94px;
}

@media (max-width: 767px) {
  header.hero-gradient {
    height: 470px;
    background-color: #d7e8f0;
    background-size: auto 450px;
    background-position: 50% 50%;
  }

  section.overons-gradient-white,
  section.overons-gradient-navy,
  section.overons-gradient-side {
    margin-top: -125px;
    padding-top: 48px;
    padding-bottom: 62px;
  }

  section.overons-gradient-white {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 125px);
  }

  section.overons-gradient-navy {
    background: linear-gradient(to bottom, rgba(4, 61, 141, 0) 0, rgba(4, 61, 141, 0) 75px, #fff 145px);
  }

  section.overons-gradient-side {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 145px);
  }

  .overons-gradient-navy .overons-copy,
  .overons-gradient-side .overons-copy {
    margin-top: 70px;
  }

  .overons-gradient-side .overons-gradient-heading > div {
    float: none;
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- 4. Portfolio carousel --------------------------------------- */

.portfolio-section {
  padding: 70px 0 80px;
}

#portfolio-carousel {
  position: relative;
  max-width: 820px;
  margin: 40px auto 0;
}

#portfolio-carousel .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #eef1f4;
  aspect-ratio: 4 / 3;
}

#portfolio-carousel .carousel-inner > .item {
  position: absolute;
  inset: 0;
  height: 100%;
  display: none;
}

#portfolio-carousel .carousel-inner > .item.active,
#portfolio-carousel .carousel-inner > .item.next,
#portfolio-carousel .carousel-inner > .item.prev {
  display: block;
}

#portfolio-carousel .carousel-inner > .item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

#portfolio-carousel .item.slide-tall > img {
  object-position: center 35%;
}

#portfolio-carousel .carousel-caption {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  padding: 8px 18px;
  background: rgba(35, 49, 64, 0.82);
  border-radius: 0 12px 0 12px;
  text-align: left;
}

#portfolio-carousel .carousel-caption a {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

#portfolio-carousel .carousel-caption a:hover,
#portfolio-carousel .carousel-caption a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

#portfolio-carousel .carousel-indicators {
  position: static;
  width: auto;
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
}

#portfolio-carousel .carousel-indicators li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #c3ccd6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

#portfolio-carousel .carousel-indicators .active {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: var(--accent);
  border: 0;
}

#portfolio-carousel .carousel-control {
  width: 44px;
  height: 44px;
  top: 50%;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(35, 49, 64, 0.6);
  color: #fff;
  opacity: 0;
  text-shadow: none;
  transition: opacity 0.2s ease;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
}

#portfolio-carousel:hover .carousel-control,
#portfolio-carousel .carousel-control:focus {
  opacity: 1;
}

#portfolio-carousel .carousel-control:hover {
  background: var(--accent);
}

#portfolio-carousel .carousel-control .glyphicon {
  font-size: 15px;
}

#portfolio-carousel .carousel-control.left { left: 12px; }
#portfolio-carousel .carousel-control.right { right: 12px; }

@media (max-width: 767px) {
  #portfolio-carousel { margin-top: 28px; }
  #portfolio-carousel .carousel-control { display: none; }
}

/* ---------- 5. Diensten: one list, two columns, no stray gaps ----------- */

.diensten-lijst {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

@media (min-width: 768px) {
  .diensten-lijst {
    columns: 2;
    column-gap: 48px;
  }
  .diensten-lijst li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.diensten-lijst li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 19px;
  line-height: 1.45;
}

.diensten-lijst li:before {
  content: "\f0e7";
  font-family: FontAwesome;
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--accent);
  font-size: 14px;
}

/* ---------- 6. Referenties: one list, two balanced columns --------------- */

.referentie-lijst {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

@media (min-width: 768px) {
  .referentie-lijst {
    columns: 2;
    column-gap: 48px;
  }
  .referentie-lijst li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.referentie-lijst li {
  padding: 5px 0 5px 26px;
  font-size: 18px;
  line-height: 1.45;
  position: relative;
}

.referentie-lijst li:before {
  content: "\f0e7";
  font-family: FontAwesome;
  position: absolute;
  left: 2px;
  top: 6px;
  color: var(--accent);
  font-size: 13px;
}

.referentie-lijst a {
  color: #33414f;
  border-bottom: 1px solid transparent;
}

.referentie-lijst a:hover,
.referentie-lijst a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

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

.ref-logos a {
  display: inline-block;
  margin: 0 14px 16px;
}

.ref-logos img {
  border: 0;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.ref-logos a:hover img {
  opacity: 1;
}

/* ---------- 7. Contact on the same page --------------------------------- */

.contact-section {
  padding: 80px 0 70px;
}

.contact-regel {
  font-size: 20px;
  margin: 0 0 12px;
}

.contact-regel .fa {
  color: var(--accent);
  width: 22px;
  text-align: center;
  margin-right: 6px;
}

/* --- cookie-friendly map: local Google screenshot, live map after click -- */

.map-facade {
  position: relative;
  margin-top: 34px;
  border: 1px solid #dbe2e8;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f4;
  box-shadow: 0 10px 28px rgba(12, 42, 70, 0.1);
}

.map-facade > img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.88) contrast(0.96);
}

.map-load-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(8, 20, 32, 0.2), rgba(8, 20, 32, 0.5));
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease;
}

.map-load-button span {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(24, 39, 55, 0.82);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.24);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background 180ms ease;
}

.map-load-button .fa {
  margin-right: 7px;
  color: #fff;
}

.map-load-button:hover,
.map-load-button:focus {
  outline: 0;
  background: linear-gradient(180deg, rgba(8, 20, 32, 0.12), rgba(8, 20, 32, 0.36));
}

.map-load-button:hover span,
.map-load-button:focus span {
  transform: translateY(-2px);
  background: rgba(4, 61, 141, 0.92);
}

.map-facade-loaded iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

@media (max-width: 767px) {
  .map-facade > img,
  .map-facade-loaded iframe { height: 330px; }
  .map-load-button span {
    padding: 10px 15px;
    font-size: 13px;
  }
}

/* ---------- 8. Footer: readable links on the dark background ------------ */

footer .footer-col a,
footer .footer-below a {
  color: #b7cdea;
  text-decoration: none;
}

footer .footer-col a:hover,
footer .footer-col a:focus,
footer .footer-below a:hover,
footer .footer-below a:focus {
  color: #ffffff;
  text-decoration: underline;
}

footer .footer-above p {
  font-size: 17px;
  line-height: 1.7;
  color: #d5dee8;
}

footer .footer-below {
  color: #b7cdea;
}

