/* ===== General ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Mitr', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #ffffff;
}

/* ===== Top Bar ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;              /* desktop height */
  background-color: #092948;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  font-size: 16px;
}

.top-bar-left {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: nowrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

/* Top Bar Icons */
.top-bar .top-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Language Switch Button */
.lang-switch {
  background: transparent;
  border: 1px solid white;
  color: white;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Navbar ===== */
nav {
  position: fixed;
  top: 60px; /* below top bar */
  left: 0;
  width: 100%;
  height: 100px; /* desktop navbar height */
  background-color: #f3f0e8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.nav-container img {
  height: 60px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #092948;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #7a5c3d;
}

.nav-links a.active {
  text-decoration: underline;
}

/* Adjust content padding below navbar */
.content {
  padding-top: 160px; /* desktop: top bar 60px + navbar 100px */
  margin-bottom: 40px;
}

/* ===== Slideshow ===== */
.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%;
}

.slides-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slides-wrapper img.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  user-select: none;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* ===== Header under slideshow ===== */
h2 {
  margin-top: 20px;
  font-size: 28px;
  color: #092948;
}

/* ===== Catalog button ===== */
.button-container {
  text-align: center;
  margin-top: 20px;
}

.catalog-button {
  display: inline-block;
  background-color: #092948;
  color: white;
  font-size: 1.5rem;
  padding: 15px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Mitr', sans-serif;
  transition: background-color 0.3s ease;
}

.catalog-button:hover {
  background-color: #0d3a63;
}

/* Sidebar text buttons */
.text-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Mitr', sans-serif;
  font-size: 16px;
  color: #092948;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s, text-decoration 0.3s;
}

.text-button:hover {
  color: #7a5c3d;
}

.text-button.active {
  text-decoration: underline;
  font-weight: bold;
  color: #7a5c3d;
}

/* ===== Footer ===== */
footer {
  background-color: #1f252a;
  color: white;
  width: 100%;
  padding: 15px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container img {
  height: 40px;
  border-radius: 8px; 
}

.phone-number {
  font-size: 16px;
}

/* ===== Mobile / Tablet ===== */
@media (max-width: 768px) {

  /* Top Bar */
  .top-bar {
    height: 40px;
    padding: 0 5px;
  }

  .top-bar-container {
    font-size: 9px;
    padding: 0 10px;
    justify-content: space-between;
    flex-direction: row;
    gap: 5px;
  }

  .top-bar-left {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .top-bar-left span {
    display: flex;
    align-items: center;
    font-size: inherit;
  }

  .top-bar .top-icon {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    flex-shrink: 0;
  }

  .lang-switch {
    font-size: 9px;
    padding: 2px 5px;
    flex-shrink: 0;
  }

  /* Navbar */
  nav {
    top: 40px; /* match mobile top bar */
    width: 100%;
    height: 70px;  /* fixed navbar height for mobile */
    padding: 10px 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .nav-container img {
    height: 40px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 14px;
  }

  /* Content */
  .content {
    padding-top: 110px; /* 40px top bar + 70px navbar */
    margin-top: 0;
  }
}