/* --- GLOBAL RESET --- */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fb;
  color: #2384c1;
}

/* --- HEADER --- */
.site-header {
  background-color: #2384c1;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0.5rem auto;
}

/* --- MAIN CONTENT --- */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: #333;
}

/* --- BUTTONS --- */
.license-buttons button,
.region-button,
.product-button {
  margin: 0.5rem;
  padding: 0.9rem 1.5rem;
  background-color: #2384c1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.license-buttons button:hover,
.region-button:hover,
.product-button:hover {
  background-color: #a18935;
  color: #fff;
  transform: translateY(-2px);
}

/* Active states */
.active-button {
  background-color: #6c757d !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* --- ACCORDION --- */
.accordion-container {
  margin-top: 2rem;
  text-align: left;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.accordion-header {
  background-color: #2384c1;
  color: white;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background-color: #a18935;
  color: #ffffff;
}

.accordion-header.active {
  background-color: #6c757d;
  color: #ffffff;
}

.accordion-body {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  padding: 1rem 1.5rem;
  animation: slideDown 0.3s ease forwards;
}

/* Slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.accordion-body.show {
  display: block;
}

/* --- PRODUCT BUTTONS INSIDE ACCORDION --- */
.accordion-body .product-button {
  display: block;
  margin: 0.5rem 0;
  width: 100%;
  text-align: left;
  background-color: #2384c1;
}

.accordion-body .product-button:hover {
  background-color: #a18935;
  color: #fff;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease forwards;
}

.modal h2 {
  margin-top: 0;
  color: #2384c1;
}

.modal ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.modal ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #a18935;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: #6c757d;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FOOTER --- */
.site-footer {
  background-color: #2384c1;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #d4af37;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  .license-buttons button {
    width: 90%;
    margin: 0.5rem auto;
    display: block;
  }

  .modal {
    padding: 1.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 95%;
    padding: 1.2rem;
  }

  .contact-button {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    font-size: 0.8rem;
  }
}
