/* Top bar / Navigation */
.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
}

.brand a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.menu > li {
  list-style: none;
  position: relative;
}

.menu > li > a {
  padding: 10px 6px;
  display: inline-block;
  font-weight: 500;
  white-space: nowrap;
}

.menu > li > a.active,
.menu > li > a:hover {
  border-bottom: 2px solid var(--brand);
}

.menu .has-dd:hover .dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}

.dd a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
}

.dd a:hover {
  background: var(--bg);
  color: var(--text);
}

.cta-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  opacity: 0.92;
}

/* Language switcher */
.flag {
  width: 22px;
  height: 14px;
  display: inline-block;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.flag-de {
  background-image: var(--flag-de);
}

.flag-fr {
  background-image: var(--flag-fr);
}

.flag-gb {
  background-image: var(--flag-gb);
}

.menu-lang-item {
  margin-left: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.lang-btn .chev {
  fill: #666;
  transition: transform 0.18s ease;
}

.lang-switch.open .lang-btn .chev {
  transform: rotate(180deg);
}

.lang-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s;
  z-index: 1001;
}

.lang-switch.open .lang-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #333;
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option .check {
  margin-left: auto;
  opacity: 0;
  color: #16a34a;
}

.lang-option.active .check {
  opacity: 1;
}

/* Footer */
footer {
  background: #242424;
  color: #cfcfcf;
  padding: 46px 0 16px;
  margin-top: 50px;
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
}

@media (max-width: 1000px) {
  footer .cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 36px 0 14px;
    margin-top: 40px;
  }

  footer .cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

footer a {
  color: #cfcfcf;
}

footer a:hover {
  color: #fff;
}

.copy {
  border-top: 1px solid #3a3a3a;
  margin-top: 22px;
  padding-top: 14px;
  font-size: 14px;
  color: #9f9f9f;
}

/* Social icons */
.footer-social {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.footer-social .label {
  color: #cfcfcf;
  font-size: 14px;
  margin-right: 6px;
}

/* Instagram icon with gradient */
.footer-social a.instagram i {
  display: inline-block;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-social a.instagram:hover {
  opacity: 0.8;
}

/* Hamburger menu button */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  z-index: 1000;
}

.burger:hover {
  background: var(--bg);
  border-color: var(--brand);
}

.burger i {
  font-size: 18px;
  color: var(--text);
}

/* Responsive */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  /* Show burger button */
  .burger {
    display: flex;
  }

  /* Hide menu by default on mobile */
  .menu {
    position: fixed;
    inset: auto 0 0 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(110%);
    transition: transform 0.3s ease;
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
  }

  .menu.open {
    transform: translateY(0);
  }

  .menu > li {
    width: 100%;
  }

  .menu > li > a {
    width: 100%;
    padding: 14px 12px;
    border-radius: 10px;
    display: block;
  }

  .menu > li > a.active,
  .menu > li > a:hover {
    border-bottom: none;
    background: var(--bg);
    color: var(--brand);
  }

  /* Dropdown menus on mobile */
  .has-dd .dd {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
    background: transparent;
    min-width: auto;
  }

  .has-dd .dd a {
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 8px;
  }

  .has-dd .dd a:hover {
    background: var(--bg);
    color: var(--text);
  }

  /* Language switcher on mobile */
  .menu-lang-item {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-btn {
    width: 100%;
    justify-content: center;
  }

  .lang-dd {
    right: auto;
    left: 0;
    width: 100%;
    min-width: 100%;
  }

  /* CTA button on mobile */
  .menu .cta-btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  /* Logo on mobile */
  .brand {
    flex-shrink: 0;
    min-width: auto;
  }

  .brand img {
    height: 70px;
    width: auto;
    flex-shrink: 0;
  }

  .nav {
    padding: 12px 0;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 400px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  footer .cols {
    grid-template-columns: 1fr;
  }

  .brand {
    flex-shrink: 0;
  }

  .brand img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
  }

  .nav {
    gap: 16px;
  }
}


