/* =====================================================================
   rts-web v1 — Fullscreen background carousel with hero overlay
   ===================================================================== */

:root {
  --navy: #0E1F3D;
  --lime: #B7D332;
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  position: relative;
}

/* ---- Background carousel (fullscreen) ---- */

.bg-carousel {
  position: fixed;
  inset: 0;
  z-index: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bg-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.bg-carousel .slide.active {
  opacity: 1;
}

.bg-carousel .slide img,
.bg-carousel .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-carousel .slide[data-type="photo"] img,
.bg-carousel .slide[data-type="photo"] > img {
  animation: ken-burns 18s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.06); }
}

/* ---- Dim overlay (very light obfuscation for text legibility) ---- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(14, 31, 61, 0.55) 0%,
      rgba(14, 31, 61, 0.35) 35%,
      rgba(14, 31, 61, 0.55) 100%);
  pointer-events: none;
}

/* ---- Layout: header + hero + footer over the carousel ---- */

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, color 0.15s;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch a[aria-current="page"] {
  color: var(--navy);
  background: var(--lime);
  text-shadow: none;
}

/* ---- Hero — centered, large, readable ---- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: 2rem 2rem 4rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.badge {
  display: inline-block;
  background: var(--lime);
  color: var(--navy);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-soft);
  font-weight: 400;
  margin: 0 0 2rem 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.teaser {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 auto 2.25rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lime);
  color: var(--navy);
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cta:hover {
  background: #c8e84a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.cta-email {
  display: block;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---- Footer ---- */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 1rem;
}

footer a:hover { color: var(--text); }

/* ---- Small screens ---- */

@media (max-width: 600px) {
  header, footer { padding: 1rem; }
  main { padding: 1rem 0.5rem 2.5rem; }
}

/* ---- Contact form (overlay on the same hero area) ---- */

[hidden] { display: none !important; }

.contact-pane {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.contact-pane h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--navy);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  resize: vertical;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(14, 31, 61, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(183, 211, 50, 0.3);
}

.contact-form .form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-form button.back,
.contact-success button.back {
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.contact-form button.back:hover,
.contact-success button.back:hover {
  color: var(--text);
}

.contact-error {
  color: #ffd1d1;
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.contact-success {
  text-align: center;
}

.contact-success h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.contact-success p {
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .bg-carousel .slide {
    transition: none;
  }
  .bg-carousel .slide img,
  .bg-carousel .slide video {
    animation: none;
  }
}

