/* BK Plan SA — public site. Design taken from the former WordPress / Divi site (2024–2026). */

@font-face { font-family: "Open Sans"; src: url("../fonts/opensans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --teal: #22383D; --teal-2: #2b454b; --orange: #FF7300; --orange-dark: #E06500;
  --light: #F6F7F9; --ink: #1c1c1c; --muted: #5f6b6e; --white: #fff;
  --sans: "Open Sans", Arial, Helvetica, sans-serif;
  --wrap: 1300px; --gutter: 5vw;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Orange top bar (home + branches, languages) */
.topbar { background: var(--orange); color: #fff; font-size: 13px; position: relative; z-index: 30; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover, .topbar a.is-active { color: var(--teal); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 6px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.langs ul { position: absolute; right: 0; top: 100%; margin: 0; padding: 6px 0; list-style: none; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); min-width: 140px; }
.langs ul a { color: var(--ink); display: flex; align-items: center; gap: 8px; padding: 6px 14px; }
.langs ul a:hover { background: var(--light); color: var(--orange); }
.flag svg { width: 16px; height: 11px; display: block; }

/* ---------- Header over the hero photo */
.header { position: relative; background: var(--teal) center / cover no-repeat; color: #fff; }
.header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 24, .55) 0%, rgba(10, 20, 24, .25) 45%, rgba(10, 20, 24, .45) 100%); }
.header > * { position: relative; }
.header-bar { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.header-logo img { width: 230px; height: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.nav-menu a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--orange); }
.nav-mobile-extra { display: none; }
.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a { color: #fff; display: block; }
.social a:hover { color: var(--orange); }
.social svg { width: 24px; height: 24px; display: block; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s, opacity .2s; }
.hero { padding: 140px 0 110px; }
.header--home .hero { padding: 170px 0 120px; }
.hero-title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; text-transform: uppercase; line-height: 1.22; margin-bottom: 36px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-title--branch span, .hero-title--branch strong { display: block; }
.hero-title--branch span { font-weight: 500; }
.hero-title--branch strong { font-weight: 700; }

/* ---------- Buttons */
.btn { display: inline-block; font: 600 13px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; padding: 14px 34px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--outline { color: #fff; border-color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--teal); }
.btn--dark { color: #fff; background: var(--teal); border-color: var(--teal); }
.btn--dark:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Sections */
.section { padding: 110px 0; }
.section--dark { background: var(--teal); color: #fff; }
.section--light { background: var(--light); }
.section--white { background: #fff; }
.section--photo { position: relative; background: #111 center / cover no-repeat; color: #fff; }
.section--photo::before { content: ""; position: absolute; inset: 0; background: rgba(8, 14, 16, .78); }
.section--photo > * { position: relative; }
.sec-head { margin-bottom: 38px; }
.kicker { color: var(--orange); text-transform: uppercase; font-size: 15px; margin: 0 0 6px; }
.sec-title { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; color: inherit; }
.section--light .sec-title, .section--white .sec-title { color: #111; }
.hl { color: var(--orange); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .15em 0; }
.lead { max-width: 760px; }

/* ---------- About */
.about-grid { display: grid; grid-template-columns: minmax(0, 486px) 1fr; gap: 70px; align-items: start; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 570px; object-fit: cover; }
.badge-box { position: absolute; left: -30px; top: 80px; background: var(--orange); color: #fff; padding: 24px 40px 30px; max-width: 200px; }
.badge-num { display: block; font: 700 37px/1.3 Inter, var(--sans); }
.badge-label { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.about-text { padding-top: 10px; }
.about-text .prose { margin: 10px 0 30px; }
.sign { margin: 36px 0 30px; }

/* ---------- Services */
.services { padding-top: 20px; }
.service-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0 0 60px; padding: 0; list-style: none; }
.service-tile { position: relative; aspect-ratio: 1; overflow: hidden; }
.service-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.service-tile:hover img { transform: scale(1.05); }
.service-tile h3 { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 16px; color: #fff; text-transform: uppercase; font-size: 17px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); hyphens: auto; overflow-wrap: anywhere; }
.sub-title { font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; margin-bottom: 22px; }
.accordion { border-bottom: 2px solid #fff; }
.accordion details { border-top: 2px solid #fff; }
.accordion summary { list-style: none; cursor: pointer; padding: 14px 40px 14px 18px; text-transform: uppercase; font-size: 16px; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] > summary { color: var(--orange); }
.accordion details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion-body { padding: 0 18px 18px 28px; font-size: 14px; }
.accordion--light { border-color: var(--teal); }
.accordion--light details { border-color: var(--teal); }
.job-sub { font-weight: 700; text-transform: uppercase; margin-bottom: .3em; }

/* ---------- Carousels (team, history) */
.carousel { position: relative; padding: 0 24px; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0; padding: 0 0 6px; list-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.carousel-btn:hover { background: var(--orange-dark); }
.carousel-btn[disabled] { opacity: .35; cursor: default; }
.carousel-btn--prev { left: -8px; }
.carousel-btn--next { right: -8px; }
.member { background: var(--teal); color: #fff; }
.team-track > li { flex: 0 0 calc((100% - 4 * 14px) / 5); }
.member img { width: 100%; aspect-ratio: 293 / 248; object-fit: cover; }
.member-text { padding: 14px 18px 18px; min-height: 104px; }
.member h3 { color: var(--orange); text-transform: uppercase; font-size: 16px; line-height: 1.2; margin-bottom: 4px; overflow-wrap: anywhere; }
.member p { margin: 0; font-size: 14px; line-height: 1.35; }
.carousel--single .carousel-track > li { flex-basis: 100%; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.history .carousel { max-width: 1100px; margin-inline: auto; }

/* ---------- Branches map */
.branches-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr); gap: 60px; align-items: center; margin-top: 10px; }
.swiss-map { position: relative; }
.swiss-map > img { width: 100%; opacity: .92; }
.pin { position: absolute; transform: translate(-50%, -50%); display: block; text-decoration: none; color: #fff; z-index: 1; }
.pin-dot { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: radial-gradient(circle, #fff 0 3px, transparent 4px); transition: transform .2s, background-color .2s; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
.pin-label { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); opacity: .9; }
.pin:hover, .pin:focus-visible { z-index: 2; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: scale(1.25); background-color: var(--teal); }
.pin:hover .pin-label { color: var(--orange); opacity: 1; }
.figure { padding: 0 0 26px; margin-bottom: 30px; border-bottom: 2px solid #fff; max-width: 260px; }
.figure:last-child { border-bottom: 0; }
.figure-num { font: 700 30px/1.2 var(--sans); color: var(--orange); margin-bottom: 10px; }
.figure-num em { font-size: 16px; color: #fff; }
.figure p:last-child { margin: 0; font-size: 14px; }

/* ---------- Projects */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1080px; margin: 0 auto 40px; padding: 0; list-style: none; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 236 / 167; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.project-text { max-width: 1080px; margin: 0 auto; font-weight: 700; }
.credit { text-transform: uppercase; font-size: 14px; }

/* ---------- Jobs */
.jobs-grid { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.jobs .accordion summary { color: var(--orange); }
.jobs .accordion-body { font-size: 14px; }
.offer { background: var(--teal); color: #fff; }
.offer h3 { text-transform: uppercase; font-size: 16px; font-weight: 600; padding: 20px 22px 6px; }
.checks { list-style: none; margin: 0; padding: 6px 22px 18px; font-size: 14px; }
.checks li { display: flex; gap: 10px; margin: 8px 0; line-height: 1.4; }
.checks svg { width: 20px; height: 20px; color: var(--orange); flex: none; stroke-width: 3; }
.offer-btn { display: block; background: var(--orange); color: #fff; text-align: center; text-transform: uppercase; font-size: 13px; padding: 10px; }
.offer-btn:hover { background: var(--orange-dark); color: #fff; }
.jobs-empty { font-size: 16px; }

/* ---------- Branch page */
.branch { padding: 70px 0 90px; }
.branch-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.3fr); gap: 60px; align-items: start; }
.branch-grid--nomap { grid-template-columns: minmax(0, 720px); }
.branch-address { display: flex; gap: 10px; align-items: flex-start; }
.branch-address svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }
.branch-info .btn { margin-top: 14px; }
.branch-map iframe { width: 100%; height: 420px; border: 0; display: block; background: var(--light); }

/* ---------- Contact block */
.contact { padding: 70px 0 60px; }
.contact .sec-head { margin-bottom: 22px; }
.contact-phone a { display: inline-flex; align-items: center; gap: 12px; color: var(--orange); text-decoration: none; font-size: 17px; }
.contact-phone svg { width: 24px; height: 24px; fill: var(--orange); stroke: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 10px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { position: relative; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field input, .cf-field textarea { width: 100%; background: transparent; border: 2px solid #fff; color: #fff; font: 14px var(--sans); padding: 20px 14px 8px; outline: none; border-radius: 0; }
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--orange); }
.cf-field label { position: absolute; left: 14px; top: 14px; color: #fff; font-size: 13px; text-transform: uppercase; pointer-events: none; transition: top .15s, font-size .15s, color .15s; }
.cf-field input:focus + label, .cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label, .cf-field textarea:not(:placeholder-shown) + label { top: 4px; font-size: 10px; color: var(--orange); }
.cf-field .req { color: var(--orange); }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { text-align: right; margin-top: 10px; }
.cf-actions .btn { text-decoration: none; padding: 9px 22px; font-size: 14px; }
.form-msg { padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.form-msg svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-msg--ok { background: var(--orange); color: #fff; }
.form-msg--error { background: #ffe1e1; color: #8a0b0b; }
.contact-photo img { width: 100%; }

/* ---------- Footer */
.footer { background: var(--teal); color: #fff; padding: 10px 0 50px; font-size: 14px; }
.footer-inner p { margin-bottom: 20px; }
.footer a { color: var(--orange); }
.footer-badge { width: 120px; margin-left: 60px; }

/* ---------- Lightbox & pop-up */
.lightbox, .popup { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .86); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden], .popup[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; width: auto; }
.lightbox button, .popup-close { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 8px 14px; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.popup-box { position: relative; max-width: min(520px, 100%); }
.popup-box img { max-height: 86vh; width: auto; }
.popup-close { top: -6px; right: -6px; background: var(--orange); width: 40px; height: 40px; border-radius: 50%; font-size: 28px; padding: 0 0 3px; }

.notfound { padding: 120px 0; }
.notfound .btn { margin-top: 10px; }

/* ---------- Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 486px; }
  .badge-box { left: auto; right: -20px; top: 40px; }
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .branches-grid { grid-template-columns: 1fr; gap: 30px; }
  .figures { display: flex; flex-wrap: wrap; gap: 0 40px; }
  .team-track > li { flex-basis: calc((100% - 3 * 14px) / 4); }
}
@media (max-width: 800px) {
  .team-track > li { flex-basis: calc((100% - 2 * 14px) / 3); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-bar { flex-wrap: wrap; }
  .social { order: 2; }
  .nav { position: fixed; inset: 0; z-index: 40; background: var(--teal); flex-direction: column; justify-content: center; align-items: center; gap: 24px; transform: translateX(100%); transition: transform .3s; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-menu, .nav-mobile-extra { flex-direction: column; align-items: center; gap: 14px; max-width: none; }
  .nav-menu a { font-size: 20px; }
  .nav-mobile-extra { display: flex; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); }
  .nav-mobile-extra a { color: var(--orange); text-decoration: none; }
  .nav-toggle { position: relative; z-index: 41; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero, .header--home .hero { padding: 90px 0 80px; }
  .section { padding: 80px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .jobs-grid, .contact-grid, .branch-grid { grid-template-columns: 1fr; gap: 40px; }
  .offer { max-width: 380px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .topbar-links { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .header-logo img { width: 180px; }
  .social { display: none; }
  .about-media img { height: 420px; }
  .badge-box { right: -10px; padding: 18px 24px 22px; }
  .service-tiles { gap: 14px; }
  .service-tile h3 { font-size: 14px; }
  .team-track > li { flex-basis: calc((100% - 14px) / 1.6); }
  .carousel { padding: 0 12px; }
  .cf-grid { grid-template-columns: 1fr; }
  .pin-label { display: none; }
  .pin-dot { width: 16px; height: 16px; }
  .footer-badge { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
