/* Montserrat variable font, self-hosted (latin + latin-ext for pl). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #00c3a5;
  --secondary: #007d6a;
  --black: #000000;
  --white: #ffffff;
  --background-tertiary: #e7f0ef;
  --background-quaternary: #e0e0e0;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--white);
  color: var(--secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Language toggle bar */
.lang-bar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.lang-toggle {
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
}

/* Hero — fills the first viewport (minus the language bar) and centers, as the
   original 100vh flex layout did. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  min-height: calc(100vh - 8rem);
}

.hero-logo {
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero-logo img {
  width: 100px;
  height: auto;
}

.hero h1 {
  color: var(--secondary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero .subheadline {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: var(--secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.85;
}

/* Feature sections */
.feature {
  background-color: var(--background-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1.5rem;
}

.feature-image {
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
  border-radius: 12px;
  line-height: 0;
}

.feature-image img {
  border-radius: 8px;
}

.feature-text h2 {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.feature-text p {
  font-size: 1.2rem;
  color: var(--secondary);
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.site-footer a {
  color: var(--white);
  font-size: 14px;
  display: inline-block;
  margin: 0 0.5rem 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social svg {
  width: 40px;
  height: 40px;
}

/* Contact page */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
}

.contact-page img {
  width: 230px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.contact-name {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
}

.contact-email {
  color: var(--secondary);
  font-size: 28px;
}

.contact-page .footer-social {
  margin-top: 1rem;
}

.contact-page .footer-social svg {
  width: 50px;
  height: 50px;
  color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  background-color: var(--background-tertiary);
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 12px rgb(0 0 0 / 10%);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-actions button {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

.cookie-accept {
  background-color: var(--primary);
  color: var(--white);
}

.cookie-decline {
  background-color: var(--background-quaternary);
  color: #4e503b;
}

/* Not-found page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
}

/* Hero entrance animation. Feature sections stay static: a scroll-triggered
   reveal would leave them invisible to non-scrolling renderers (crawlers,
   screenshots) — the old SPA had exactly that flaw. */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fade-up 0.7s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .hero > * {
    animation: none;
  }
}

/* Desktop */
@media (min-width: 761px) {
  .lang-toggle {
    font-size: 16px;
  }

  .hero {
    padding: 4rem 2rem 5rem;
  }

  .hero-logo img {
    width: 140px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero .subheadline {
    font-size: 24px;
  }

  .hero .lead {
    font-size: 1.15rem;
  }

  .feature {
    flex-direction: row;
    padding: 3rem;
  }

  .feature--image-right {
    flex-direction: row-reverse;
  }

  .feature > * {
    flex: 1 1 50%;
  }

  .feature-image {
    max-width: 560px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-around;
  }

  .site-footer a {
    font-size: 16px;
  }

  .cookie-banner {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}
