/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background-color: #fff0f3;
  color: #4a2b33;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.page-content {
  flex: 1;
  overflow-y: auto;
}

/* Navigation bar */
.navbar {
  background-color: #f8bbd0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 15px 20px;
}

.navbar a {
  color: #880e4f;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.navbar a:hover {
  background-color: #f48fb1;
  color: #ffffff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  gap: 10px 24px;
}

.lang-switcher {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.lang-switcher a:hover {
  background-color: transparent;
  opacity: 0.85;
}

.lang-switcher a.active {
  background-color: #ffffff;
  opacity: 1;
}

.lang-switcher img {
  width: 26px;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* Content container */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
}

.container .logo {
  max-width: 100%;
  height: auto;
}

.container h2 {
  color: #d81b60;
  margin-bottom: 15px;
}

.container p {
  line-height: 1.6;
  text-align: left;
  margin-bottom: 15px;
}

.container--tight-top {
  margin-top: 10px;
}

/* Subtitle section */
.subtitle-section {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 30px;
  text-align: center;
}

.subtitle-section h3 {
  font-size: 2rem;
  line-height: 1.6;
  color: #000000;
}

.lasni-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Lasni podaljški - extension list */
.extension-list {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.extension-list--tight {
  gap: 15px;
  margin-bottom: 15px;
}

.extension-item {
  display: flex;
  align-items: center;
  gap: 30px;
}

.extension-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background-color: #f8bbd0;
  border-radius: 10px;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.extension-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.extension-image:hover img {
  transform: scale(1.05);
}

.o-meni-container {
  margin-top: 10px;
  margin-bottom: 15px;
}

/* O meni - certifikati */
.o-meni-images {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.o-meni-images--tight {
  margin-top: 0;
  margin-bottom: 15px;
}

.extension-text h3 {
  color: #d81b60;
  margin-bottom: 6px;
}

.extension-text p {
  line-height: 1.4;
  margin-bottom: 6px;
}

.extension-text p:last-child {
  margin-bottom: 0;
}

/* Cenik table */
.cenik-table-wrapper {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 30px;
  overflow-x: auto;
}

.cenik-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cenik-table th,
.cenik-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid #f8bbd0;
}

.cenik-table thead th {
  color: #000000;
}

.cenik-table tbody th {
  color: #000000;
  text-align: left;
}

.cenik-note {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 30px;
  text-align: left;
}

.cenik-note p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.cenik-note p:last-child {
  margin-bottom: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
  body {
    height: auto;
    overflow: visible;
  }

  .page-content {
    overflow-y: visible;
  }

  .navbar {
    flex-direction: column;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }

  .lang-switcher {
    justify-content: center;
    width: 100%;
  }

  .subtitle-section h3 {
    font-size: 1.4rem;
  }

  .container,
  .subtitle-section,
  .extension-list,
  .o-meni-images,
  .cenik-table-wrapper,
  .cenik-note,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cenik-table {
    table-layout: auto;
    width: auto;
    min-width: 600px;
  }

  .cenik-table th,
  .cenik-table td {
    padding: 8px;
    white-space: nowrap;
  }

  .extension-item {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact section */
.contact-section {
  max-width: 600px;
  margin: 40px auto;
  margin-top: 10px;
  padding: 30px;
  text-align: center;
}

.contact-section h2 {
  color: #d81b60;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  color: #880e4f;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #f8bbd0;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #d81b60;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #880e4f;
}

/* Flash messages */
.flash-messages {
  list-style: none;
  margin-bottom: 15px;
}

.flash-messages li {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.flash-success {
  background-color: #f8bbd0;
  color: #880e4f;
}

.flash-error {
  background-color: #ffcdd2;
  color: #b71c1c;
}

/* Footer */
.site-footer {
  background-color: #880e4f;
  color: #ffe3ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 18px 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.footer-column {
  min-width: 200px;
  text-align: center;
}

.footer-column h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-column p {
  line-height: 1.6;
}

.footer-column a {
  color: #ffe3ec;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-signature {
  text-align: center;
  font-size: 0.7rem;
  color: #cccccc;
}
