/* =====================================================
   0) Dodatek pro mobilní menu
======================================================== */

.canvas-menu.visible {
  display: block;
}

/* =====================================================
   1) Proměnné a font-face
======================================================== */
:root {
  --font-primary: 'Beausite Classic', Helvetica, Arial, sans-serif;

  --menu-font-min: 0.8rem;
  --menu-font-max: 2rem;
  --menu-font: clamp(var(--menu-font-min), calc(1vw + 0.5rem), var(--menu-font-max));

  --letter-spacing: 0.02em;
  --line-height: 1.1;
}

@font-face {
  font-family: 'Beausite Classic';
  src: url('../fnt/BeausiteClassicWeb-Light.woff2') format('woff2'),
       url('../fnt/BeausiteClassicWeb-Light.woff') format('woff');
  font-weight: 300; 
  font-style: normal;
}
@font-face {
  font-family: 'Beausite Classic';
  src: url('../fnt/BeausiteClassicWeb-Clear.woff2') format('woff2'),
       url('../fnt/BeausiteClassicWeb-Clear.woff') format('woff');
  font-weight: 400; 
  font-style: normal;
}
@font-face {
  font-family: 'Beausite Classic';
  src: url('../fnt/BeausiteClassicWeb-Medium.woff2') format('woff2'),
       url('../fnt/BeausiteClassicWeb-Medium.woff') format('woff');
  font-weight: 500; 
  font-style: normal;
}

/* =====================================================
   2) Obecné styly
======================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: 'Beausite Classic', sans-serif;
  background: #5a5a5a;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: #fff;
}

button, .filter-btn, .branch-filter-btn {
  font-family: var(--font-primary) !important;
  font-weight: 300 !important;
}

/* =====================================================
   3) Header, menu
======================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 60px;
  position: absolute;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  transition: opacity 0.5s ease;
}
.header-hidden {
  opacity: 0;
  pointer-events: none;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo img {
  width: clamp(100px, 20vw, 400px);
  height: auto;
  transition: transform 0.5s ease;
}
.header .logo img {
  margin-top: calc(-0.9 * var(--menu-font));
}

.desktop-menu .menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: flex-start;
}
.menu a {
  font-size: var(--menu-font);
  letter-spacing: var(--letter-spacing);
  font-weight: 300;
}
.menu-trigger {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}
.canvas-menu {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #717171;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  padding: 60px 20px 20px 20px;
  z-index: 9;
  box-sizing: border-box;
}
.canvas-menu ul {
  list-style: none;
  padding: 0;
}
.canvas-menu li {
  margin: 20px 0;
}
.canvas-menu a {
  color: #fff;
  font-size: 24px;
  letter-spacing: var(--letter-spacing);
  font-weight: 300;
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  color: #fff;
  background: none;
  border: none;
}

/* =====================================================
   GDPR SEKCE
======================================================== */
.gdpr-section {
  padding: 8% 60px 60px;
  margin: 0 auto;
}
.gdpr-title {
  font-size: clamp(1.7rem, 2.5vw, 3.4rem);
  font-weight: 300;
  margin-bottom: 30px;
}
.gdpr-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 65ch;
}
.gdpr-columns {
  display: flex;
  gap: 5%;
  flex-wrap: wrap;
}
.gdpr-col {
  flex: 1 1 45%;
}
.gdpr-col h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.gdpr-col p {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7; 
  margin-bottom: 1.7rem; 
}
.gdpr-col ul,
.gdpr-col ol {
  padding-left: 2.2em; 
  margin-bottom: 1.7rem; 
}
.gdpr-col li {
  margin-bottom: 0.7em; 
}

/* =====================================================
   FOOTER
======================================================== */
.footer-section {
  background: #bdbdbd;
  padding: 80px 60px 40px;
  box-sizing: border-box;
  font-weight: 300;
}
.footer-headline {
  font-size: clamp(1rem, 1.5vw, 2rem);
  font-weight: 300;
  letter-spacing: var(--letter-spacing);
  margin: 0 0 3rem 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
  margin-bottom: 4rem;
}
.footer-menu {
  display: flex;
  gap: 80px;
}
.footer-col {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 1.6rem;
}
.footer-col a {
  font-size: clamp(1rem, 1.4vw, 1.6rem);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  text-decoration: none;
  margin-top: 6.4rem;
}
.linkedin-icon {
  width: 28px;
  height: auto;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(3rem, 6vw, 6rem);
}
.footer-logo {
  height: clamp(3.5rem, 7vw, 7rem);
  width: auto;
}
.footer-copy {
  font-size: clamp(0.6rem, 0.9vw, 1rem);
  font-weight: 300;
  line-height: 1.35;
  text-align: right;
  margin: 0;
  transform: translateY(-1.35em);
}

/* =====================================================
   MEDIA QUERIES
======================================================== */
@media (max-width: 849px) {
  .header {
    padding: 10px;
  }
  .logo img {
    width: clamp(100px, 45vw, 200px);
  }
  .desktop-menu {
    display: none;
  }
  .menu-trigger {
    display: block;
    z-index: 12;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .menu-close {
    z-index: 12;
  }
  .canvas-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background:
      linear-gradient(
        to bottom,
        #717171 0%,
        #717171 60%,
        rgba(113,113,113,0.5) 75%,
        transparent 100%
      );
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
    z-index: 1000;
  }
  .canvas-menu .canvas-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
  }
  .canvas-menu .canvas-logo img {
    width: clamp(100px, 45vw, 200px);
    display: block;
  }
  .canvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 30%;
    margin-left: 20px;
  }
  .canvas-menu li {
    margin: 1rem 0;
  }
  .canvas-menu a {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: #fff;
  }

  .gdpr-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-section {
    padding: 30px 10px;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .footer-menu {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-copy {
    text-align: left;
    transform: none;
  }
}