/* ==========================================================================
   ProgSI static site — plain hand-written CSS (no build step, no minifier)
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  color: #777777;
}

a {
  color: #166481;
}

.hr {
  border: 1px solid #add8e6;
  width: 70%;
  margin: 24px auto !important;
}

.button-link {
  display: inline-block;
  padding: 3px 10px;
  color: white;
  font-weight: bold;
  border: 1px solid #065a7a;
  border-radius: 5px;
  background-color: #065a7a;
  margin-right: 24px;
  text-decoration: none;
}

.button-link:hover {
  background-color: black;
  text-decoration: underline;
}

/* ------------------------------ layout ------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e5e5;
}

.site-header .logo img {
  display: block;
  padding: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}

.site-nav > a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.site-nav > a:hover {
  color: #065a7a;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  cursor: pointer;
  color: #333;
  font-weight: 500;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary:hover {
  color: #065a7a;
}

.nav-dropdown summary::after {
  content: ' \25BE';
}

.nav-dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  margin: 4px 0 0;
  padding: 8px 0;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  list-style: none;
}

.nav-dropdown ul li a {
  display: block;
  padding: 6px 16px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown ul li a:hover {
  background: #f5f5f5;
  color: #065a7a;
}

.lang-switch {
  font-size: 0.9em;
}

.lang-switch a {
  text-decoration: none;
  color: #333;
  padding: 2px 4px;
}

.lang-switch a.active {
  font-weight: bold;
  color: #065a7a;
}

.content {
  padding: 10px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.site-footer {
  text-align: center;
  height: 32px;
  line-height: 32px;
  background-color: #f0f0f0;
  margin-top: 40px;
}

.site-footer a {
  margin-right: 64px;
}

.site-footer .copyright {
  font-size: 0.8em;
}

/* ------------------------------ hero slider ------------------------------ */

.hero-slider {
  position: relative;
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  position: relative;
  opacity: 1;
}

.hero-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------ lightbox ------------------------------ */

.lightbox-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
}

.lightbox-trigger img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
}

/* ------------------------------ contact form ------------------------------ */

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form fieldset[disabled] {
  opacity: 0.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: black;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  max-width: 480px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 500;
  color: #374151;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 1px 6px rgba(168, 85, 247, 0.4);
}

.form-group textarea {
  resize: none;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.captcha-row input {
  max-width: 220px;
}

#captcha-refresh {
  font-size: 1.8em;
  text-decoration: none;
  color: #333;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background-color: #a855f7;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 1em;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e5e5;
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner[hidden] {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-success {
  border: 1px solid green;
  border-radius: 10px;
  padding: 20px;
  font-size: 1.3em;
}

.contact-success[hidden] {
  display: none;
}

.contact-success a {
  color: blue;
}
